* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 12px;
    background-color: #f0f0f0;
    display: flex;
    height: 100vh;
}

/* Left Sidebar */
.sidebar {
    width: 220px;
    background-color: #ffffff;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

.logo-section {
    padding: 20px;
    text-align: center;
    background-color: #ffffff;
}

.logo-section img {
    width: 120px;
    height: auto;
}

.welcome-box {
    background-color: #f4e96d;
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 11px;
    border: 1px solid #d4c94d;
}

.welcome-box .welcome-text {
    font-weight: normal;
}

.welcome-box .user-name {
    font-weight: bold;
}

.dept-info {
    background-color: #dcebf7;
    color: #003366;
    padding: 8px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    background-color: #003366;
    color: white;
    padding: 10px 15px;
    border-bottom: 1px solid #ffffff;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
}

.nav-menu li:hover {
    background-color: #004080;
}

.nav-menu li.active-red {
    background-color: #ff0000;
    color: white;
}

.nav-menu li.active-red:hover {
    background-color: #cc0000;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #e8e8e8;
}

.header {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
}

.content-area {
    flex: 1;
    padding: 20px;
    display: flex;
    gap: 20px;
    overflow-y: auto;
}

.profile-section {
    flex: 1;
    background-color: white;
    border: 1px solid #ccc;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table td {
    padding: 8px 12px;
    border: 1px solid #999;
    font-size: 12px;
}

.profile-table td:first-child {
    background-color: #f5f5f5;
    font-weight: normal;
    width: 40%;
}

.profile-table td:last-child {
    background-color: white;
    font-weight: bold;
}

/* Photo Section */
.photo-section {
    width: 200px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    height: fit-content;
}

.photo-section img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #999;
    margin-bottom: 10px;
}

.status {
    font-size: 11px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.refresh-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    padding: 8px 20px;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
}

.footer-right {
    text-align: right;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        /* Keep sidebar side-by-side as per screenshots */
        overflow-x: hidden;
    }

    .sidebar {
        width: 140px;
        /* Highly reduced width for mobile to save space */
        flex-shrink: 0;
    }

    .nav-menu li {
        padding: 8px 5px;
        font-size: 9px;
        /* Smaller font to fit labels */
    }

    .logo-section {
        padding: 5px;
    }

    .logo-section img {
        width: 60px;
    }

    .welcome-box {
        font-size: 9px;
        padding: 5px;
    }

    .dept-info {
        font-size: 9px;
        padding: 4px;
    }

    .header {
        font-size: 12px;
        padding: 8px;
    }

    /* Keep content area side-by-side (Row) effectively, but flexible */
    .content-area {
        flex-direction: row;
        /* FORCE ROW as per screenshots */
        padding: 5px;
        gap: 5px;
        align-items: flex-start;
        /* Align top */
    }

    /* Personal Details View specific adjustment */
    .profile-section {
        flex: 1;
        /* Take remaining space */
        min-width: 0;
        /* Allow shrinking */
        overflow-x: scroll;
        /* Scroll table if needed */
    }

    .photo-section {
        width: 90px;
        /* Small fixed width for photo on right */
        padding: 5px;
        flex-shrink: 0;
        /* Don't shrink photo box too much */
    }

    .photo-section img {
        width: 100%;
        height: auto;
    }

    .profile-table td {
        white-space: normal;
        /* Allow wrapping */
        padding: 4px;
        font-size: 10px;
    }
}