* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   APP
========================= */

.app {
    display: flex;
    min-height: 100vh;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 250px;
    background: #111827;
    color: white;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 30px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: #2563eb;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
}

.logo h2 {
    font-size: 20px;
}

.logo span {
    font-size: 11px;
    color: #9ca3af;
}

.menu-title {
    font-size: 10px;
    color: #6b7280;
    font-weight: bold;
    padding: 15px 12px 8px;
    letter-spacing: 1px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    transition: 0.2s;
}

.menu-item span {
    width: 22px;
    text-align: center;
}

.menu-item:hover {
    background: #1f2937;
    color: white;
}

.menu-item.active {
    background: #2563eb;
    color: white;
}

.sidebar-bottom {
    margin-top: auto;
}

.admin-box {
    border-top: 1px solid #374151;
    padding: 18px 8px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.admin-box strong {
    display: block;
    font-size: 13px;
}

.admin-box small {
    color: #9ca3af;
    font-size: 11px;
}


/* =========================
   MAIN
========================= */

.main {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.topbar {
    height: 90px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 35px;
}

.topbar h1 {
    font-size: 25px;
    color: #111827;
}

.topbar p {
    color: #6b7280;
    font-size: 13px;
    margin-top: 5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.notification {
    border: none;
    background: #f3f4f6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.notification span {
    position: absolute;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    top: 7px;
    right: 7px;
}

.date {
    color: #6b7280;
    font-size: 13px;
}


/* =========================
   CONTENT
========================= */

.content {
    padding: 30px 35px;
}


/* =========================
   STAT CARDS
========================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 21px;
    font-weight: bold;
}

.employees-icon {
    background: #dbeafe;
}

.present-icon {
    background: #dcfce7;
}

.absent-icon {
    background: #fee2e2;
}

.department-icon {
    background: #fef3c7;
}

.stat-card p {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.stat-card h2 {
    font-size: 25px;
    color: #111827;
}

.stat-card small {
    color: #9ca3af;
    font-size: 10px;
}


/* =========================
   SECTION
========================= */

.section-header {
    margin-top: 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 18px;
    color: #111827;
}

.section-header p {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}


/* =========================
   QUICK ACTIONS
========================= */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.action-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
}

.action-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.action-icon {
    width: 45px;
    height: 45px;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 21px;
}

.action-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}

.action-card p {
    font-size: 11px;
    color: #9ca3af;
}


/* =========================
   TABLE
========================= */

.recent-header {
    margin-top: 35px;
}

.view-all {
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
}

.table-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f9fafb;
}

th {
    text-align: left;
    padding: 14px 18px;
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 0.5px;
}

td {
    padding: 15px 18px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
    color: #4b5563;
}

.employee {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee strong {
    display: block;
    color: #111827;
    font-size: 12px;
}

.employee small {
    color: #9ca3af;
    font-size: 10px;
}

.table-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.active-status {
    background: #dcfce7;
    color: #15803d;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 700px) {

    .sidebar {
        width: 70px;
        padding: 20px 8px;
    }

    .logo div:not(.logo-icon),
    .menu-title,
    .menu-item {
        font-size: 0;
    }

    .menu-item span {
        font-size: 18px;
    }

    .admin-box div:not(.avatar) {
        display: none;
    }

    .main {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .topbar {
        padding: 0 20px;
    }

    .content {
        padding: 20px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .table-card {
        overflow-x: auto;
    }

}

/* =========================
   EMPLOYEE PAGE
========================= */

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-actions h2 {
    font-size: 18px;
    color: #111827;
}

.page-actions p {
    color: #9ca3af;
    font-size: 12px;
    margin-top: 5px;
}

.add-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 11px 18px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.add-btn:hover {
    background: #1d4ed8;
}

.search-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.search-box {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
}

.filter {
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 10px;
    color: #4b5563;
    background: white;
}

.action-btn {
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #2563eb;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
}

.action-btn:hover {
    background: #dbeafe;
}

/* =========================
   ATTENDANCE PAGE
========================= */

.attendance-status {
    border: none;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

.present-select {
    background: #dcfce7;
    color: #15803d;
}

.absent-select {
    background: #fee2e2;
    color: #dc2626;
}

.attendance-status option {
    background: white;
    color: #374151;
}

.department-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

/* =========================
   LOGIN PAGE
   ========================= */

.login-page,
.dashboard-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f4f7fb;

}


.login-card,
.dashboard-card {

    width: 420px;

    background: white;

    padding: 40px;

    border-radius: 16px;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

    text-align: center;

}


.login-logo {

    width: 60px;

    height: 60px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #2563eb;

    color: white;

    font-size: 28px;

    font-weight: bold;

}


.login-card h1 {

    font-size: 24px;

    margin-bottom: 8px;

}


.login-card > p {

    color: #6b7280;

    margin-bottom: 30px;

}


.form-group {

    text-align: left;

    margin-bottom: 20px;

}


.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: 600;

}


.form-group input {

    width: 100%;

    padding: 12px;

    border: 1px solid #d1d5db;

    border-radius: 8px;

    box-sizing: border-box;

}


.login-btn {

    width: 100%;

    padding: 13px;

    border: none;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

}


.login-error {

    background: #fee2e2;

    color: #b91c1c;

    padding: 10px;

    border-radius: 8px;

    margin-bottom: 20px;

}


.demo-login {

    margin-top: 25px;

    padding-top: 15px;

    border-top: 1px solid #eee;

    font-size: 13px;

    color: #6b7280;

}


/* =========================
   DASHBOARD
   ========================= */

.dashboard-icon {

    font-size: 50px;

    margin-bottom: 15px;

}


.dashboard-card h1 {

    margin-bottom: 5px;

}


.dashboard-card p {

    color: #6b7280;

}


.dashboard-buttons {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 30px;

}


.dashboard-buttons a {

    text-decoration: none;

    padding: 13px;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-weight: 600;

}


.dashboard-buttons a:last-child {

    background: #ef4444;

}

body {
    background: #f4f7fb;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    font-weight: 600;
}

input,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 15px;
}

form {
    text-align: left;
}

.add-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
}

.action-btn {
    display: inline-block;
    padding: 10px 16px;
    margin-left: 8px;
    background: #e5e7eb;
    color: #111827;
    border-radius: 8px;
    text-decoration: none;
}


/* =========================
   MY PROFILE PAGE
========================= */

.profile-page {
    min-height: 100vh;
    padding: 40px;
    background: #f4f7fb;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}


/* Profile Card */

.profile-card {
    width: 100%;
    max-width: 900px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}


/* Header */

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;

    padding-bottom: 25px;
    margin-bottom: 25px;

    border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #dbeafe;
    color: #2563eb;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 28px;
}

.profile-header h2 {
    margin: 0 0 5px;

    font-size: 24px;
    color: #111827;
}

.profile-header p {
    margin: 0;

    font-size: 13px;
    color: #6b7280;
}


/* Information Grid */

.profile-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}


/* Individual Information Box */

.profile-item {
    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 10px;

    padding: 17px;

    transition: 0.2s;
}

.profile-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}


/* Labels */

.profile-item label {
    display: block;

    margin: 0 0 7px;

    color: #6b7280;

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* Values */

.profile-item p {
    margin: 0;

    color: #111827;

    font-size: 15px;

    font-weight: 600;
}


/* Status */

.profile-status {
    display: inline-block;

    padding: 6px 12px;

    border-radius: 20px;

    background: #dcfce7;

    color: #15803d;

    font-size: 11px;

    font-weight: 700;
}


/* Buttons */

.profile-actions {
    display: flex;

    gap: 12px;

    margin-top: 25px;
}

.profile-actions a {
    display: inline-block;

    padding: 11px 18px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    transition: 0.2s;
}

.back-btn {
    background: #2563eb;
    color: white;
}

.back-btn:hover {
    background: #1d4ed8;
}

.logout-btn {
    background: #fee2e2;
    color: #dc2626;
}

.logout-btn:hover {
    background: #fecaca;
}


/* =========================
   PROFILE RESPONSIVE
========================= */

@media (max-width: 700px) {

    .profile-page {
        padding: 20px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions a {
        text-align: center;
    }

}


/* =========================
   USER DASHBOARD
========================= */

.user-dashboard-page {
    min-height: 100vh;
    background: #f4f7fb;
    padding: 50px 25px;
}

.user-dashboard-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================
   WELCOME HEADER
========================= */

.user-welcome {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.user-welcome-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.user-welcome-label {
    color: #2563eb;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.user-welcome h1 {
    font-size: 26px;
    color: #111827;
    margin-bottom: 5px;
}

.user-welcome-text {
    color: #6b7280;
    font-size: 13px;
}

.user-role {
    margin-left: auto;
    background: #dbeafe;
    color: #2563eb;
    padding: 7px 13px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}


/* =========================
   DASHBOARD GRID
========================= */

.user-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.user-dashboard-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 25px;
    display: block;
    transition: 0.2s ease;
}

.user-dashboard-card:hover {
    border-color: #2563eb;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08);
}


/* =========================
   CARD ICONS
========================= */

.user-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

.profile-card-icon {
    background: #dbeafe;
    color: #2563eb;
}

.attendance-card-icon {
    background: #dcfce7;
    color: #15803d;
}

.department-card-icon {
    background: #fef3c7;
    color: #b45309;
}


/* =========================
   CARD CONTENT
========================= */

.user-card-content h2 {
    color: #111827;
    font-size: 17px;
    margin-bottom: 8px;
}

.user-card-content p {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    min-height: 38px;
}

.user-card-content span {
    display: inline-block;
    margin-top: 18px;
    color: #2563eb;
    font-size: 12px;
    font-weight: bold;
}


/* =========================
   ACCOUNT CARD
========================= */

.user-account-card {
    margin-top: 25px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-account-card h3 {
    color: #111827;
    font-size: 14px;
    margin-bottom: 5px;
}

.user-account-card p {
    color: #6b7280;
    font-size: 12px;
}

.user-account-card strong {
    color: #111827;
}

.account-role {
    background: #f3f4f6;
    color: #4b5563;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}


/* =========================
   LOGOUT
========================= */

.user-dashboard-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.user-logout-btn {
    background: #fee2e2;
    color: #dc2626;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.user-logout-btn:hover {
    background: #fecaca;
}


/* =========================
   USER DASHBOARD RESPONSIVE
========================= */

@media (max-width: 800px) {

    .user-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .user-welcome {
        padding: 22px;
    }

}

@media (max-width: 550px) {

    .user-dashboard-page {
        padding: 25px 15px;
    }

    .user-welcome {
        align-items: flex-start;
    }

    .user-welcome-icon {
        width: 50px;
        height: 50px;
        font-size: 23px;
    }

    .user-welcome h1 {
        font-size: 21px;
    }

    .user-role {
        display: none;
    }

    .user-account-card {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

}


/* =========================
   USER INNER PAGES
========================= */

.user-page {
    min-height: 100vh;
    background: #f4f7fb;
    padding: 45px 25px;
}

.user-page-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}


/* =========================
   PAGE HEADER
========================= */

.user-page-header {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.user-page-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.user-page-icon {
    width: 58px;
    height: 58px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: bold;
}

.attendance-page-icon {
    background: #dcfce7;
    color: #15803d;
}

.department-page-icon {
    background: #fef3c7;
    color: #b45309;
}

.user-page-label {
    color: #2563eb;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.user-page-heading h1 {
    font-size: 25px;
    color: #111827;
    margin-bottom: 5px;
}

.user-page-heading p:last-child {
    color: #6b7280;
    font-size: 12px;
}

.back-dashboard-btn {
    background: #eff6ff;
    color: #2563eb;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.back-dashboard-btn:hover {
    background: #dbeafe;
}


/* =========================
   ATTENDANCE TABLE
========================= */

.user-table-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-top: 25px;
    overflow: hidden;
}

.user-table-header {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.user-table-header h2 {
    font-size: 17px;
    color: #111827;
    margin-bottom: 5px;
}

.user-table-header p {
    font-size: 11px;
    color: #9ca3af;
}

.record-count {
    background: #f3f4f6;
    color: #4b5563;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.user-table-wrapper {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th {
    background: #f9fafb;
    text-align: left;
    padding: 14px 20px;
    font-size: 10px;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.user-table td {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    color: #4b5563;
    font-size: 12px;
}

.user-table td strong {
    color: #111827;
}

.user-table tbody tr {
    transition: 0.15s;
}

.user-table tbody tr:hover {
    background: #f9fafb;
}


/* =========================
   ATTENDANCE BADGES
========================= */

.attendance-badge {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.present-badge {
    background: #dcfce7;
    color: #15803d;
}

.absent-badge {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================
   DEPARTMENT MAIN CARD
========================= */

.department-main-card {
    margin-top: 25px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.department-main-icon {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    background: #fef3c7;
    color: #b45309;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
}

.department-label {
    color: #9ca3af;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.department-main-card h2 {
    color: #111827;
    font-size: 23px;
    margin: 5px 0;
}

.department-main-card p {
    color: #6b7280;
    font-size: 12px;
}

.department-main-card p strong {
    color: #111827;
}

.department-status {
    margin-left: auto;
}

.department-active {
    background: #dcfce7;
    color: #15803d;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}

.department-inactive {
    background: #fee2e2;
    color: #dc2626;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
}


/* =========================
   DEPARTMENT DETAILS
========================= */

.department-details-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-top: 20px;
    padding: 25px;
}

.department-details-header {
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.department-details-header h2 {
    color: #111827;
    font-size: 17px;
    margin-bottom: 5px;
}

.department-details-header p {
    color: #9ca3af;
    font-size: 11px;
}

.department-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.department-info-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 17px;
}

.department-info-item span {
    display: block;
    color: #6b7280;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.department-info-item strong {
    color: #111827;
    font-size: 14px;
}

.department-status-text {
    color: #15803d !important;
}


/* =========================
   EMPTY STATE
========================= */

.empty-state {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    margin-top: 25px;
    padding: 60px 25px;
    text-align: center;
}

.empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.empty-state h3 {
    color: #111827;
    font-size: 17px;
    margin-bottom: 7px;
}

.empty-state p {
    color: #9ca3af;
    font-size: 12px;
}


/* =========================
   PAGE FOOTER
========================= */

.user-page-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {

    .user-page {
        padding: 25px 15px;
    }

    .user-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-page-heading {
        align-items: flex-start;
    }

    .back-dashboard-btn {
        width: 100%;
        text-align: center;
    }

    .user-table-header {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .department-main-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .department-status {
        margin-left: 0;
    }

    .department-info-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================
   MY DEPARTMENT PAGE
========================= */

.department-page-card {
    max-width: 850px;
    width: 100%;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.no-data-icon {
    font-size: 45px;
    margin-bottom: 12px;
}

.no-data h3 {
    color: #111827;
    margin-bottom: 8px;
}

.no-data p {
    color: #6b7280;
    font-size: 13px;
}