/* ===========================
   RESET & BASE
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #1a1a2e;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    width: 240px;
    background: #1a1a2e;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #00b894;
    padding: 6px;
    margin-bottom: 12px;
}

.sidebar-header h2 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    line-height: 1.5;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu li:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9);
}

.sidebar-menu li.active {
    background: #00b894;
    color: #ffffff;
}

.logout-btn {
    margin-top: 8px;
    color: rgba(255, 100, 100, 0.7) !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 14px !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
    margin-left: 240px;
    min-height: 100vh;
    background: #f8fafc;
}

/* ===========================
   TOP HEADER
=========================== */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

#liveClock {
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* ===========================
   CONTENT AREA
=========================== */
.content-area {
    padding: 24px 28px;
}

/* ===========================
   TAB SECTIONS
=========================== */
.tab-section {
    display: none;
}

.tab-section.active {
    display: block;
}

/* ===========================
   CARDS
=========================== */
.card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.card h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 20px;
    text-align: left;
}

/* ===========================
   DASHBOARD STAT CARDS
=========================== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
}

.stat-card h3 {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-align: left;
}

.stat-card p {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 20px;
}

/* ===========================
   INPUTS & FORMS
=========================== */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1a1a2e;
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00b894;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

/* ===========================
   BUTTONS
=========================== */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #00b894;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

button:hover {
    background: #00a381;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: #00b894;
}

.btn-primary:hover {
    background: #00a381;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

/* ===========================
   SELECT DROPDOWNS
=========================== */
.admin-select {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0 16px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #1a1a2e;
    background: #f8fafc;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-select:focus {
    outline: none;
    border-color: #00b894;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

/* ===========================
   TABLES
=========================== */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 13px;
}

thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

tbody td {
    padding: 12px 16px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: #f8fafc;
}

/* ===========================
   STATUS BADGES
=========================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-present, .status-badge.approved {
    background: #dcfce7;
    color: #166534;
}

.badge-absent {
    background: #fee2e2;
    color: #991b1b;
}

.badge-leave {
    background: #fef3c7;
    color: #92400e;
}

.badge-late {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.rejected {
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ===========================
   ACTION BUTTONS IN TABLE
=========================== */
.approve-btn {
    background: #00b894;
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
    margin-right: 6px;
    border-radius: 6px;
}

.reject-btn {
    background: #ef4444;
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
    border-radius: 6px;
}

/* ===========================
   SEARCH INPUT
=========================== */
.table-search {
    margin-bottom: 16px !important;
    margin-top: 0 !important;
    background: #f8fafc url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 12px center;
    padding-left: 36px !important;
}

/* ===========================
   PROFILE
=========================== */
.profile-container {
    display: flex;
    flex-direction: column;
    max-width: 420px;
    gap: 4px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #00b894;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ===========================
   TASK CARDS
=========================== */
.task-card {
    margin-bottom: 20px;
}

.task-card textarea {
    min-height: 48px;
    resize: vertical;
    margin: 0;
}

/* ===========================
   LEAVE FORM
=========================== */
.leave-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 500px;
}

.leave-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.leave-date-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leave-date-row input {
    flex: 1;
}

.leave-date-row span {
    color: #94a3b8;
    font-weight: 500;
}

/* ===========================
   BUTTON CONTAINER
=========================== */
.button-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-container button {
    flex: 1;
    min-width: 140px;
}

/* ===========================
   LOGIN PAGE
=========================== */
.login-wrapper {
    min-height: 100vh;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
    border-radius: 12px;
    background: #00b894;
    padding: 10px;
}

.login-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 6px;
}

.login-container p.subtitle {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 24px;
}

.login-container a {
    color: #00b894;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.login-container a:hover {
    text-decoration: underline;
}

/* ===========================
   FORM LABELS
=========================== */
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: column;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 4px;
    }

    .sidebar-menu li {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 12px 16px;
    }

    .content-area {
        padding: 16px;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card p {
        font-size: 24px;
    }

    .button-container {
        flex-direction: column;
    }

    .leave-date-row {
        flex-direction: column;
    }

    table {
        font-size: 12px;
    }

    thead th, tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
    }

    .login-container {
        margin: 16px;
        padding: 24px;
    }

    .sidebar-menu li {
        font-size: 11px;
        padding: 6px 10px;
    }
}

/* ===========================
   BUBBLE ANIMATION (LOGIN)
=========================== */
.bubble-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    animation: rise linear forwards;
    opacity: 0.5;
}

@keyframes rise {
    0% { bottom: -100px; opacity: 0.6; }
    100% { bottom: 110%; opacity: 0; }
}

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.stat-card h3 {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-align: left;
}

.stat-card p {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
    text-align: left;
}

/* ===========================
   DASHBOARD FIXES
=========================== */

.stat-card {
    padding: 24px;
}

.stat-card p {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 12px;
}

.stat-card h3 {
    margin-top: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar brand fix */
.sidebar-header {
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-header h2 {
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

/* Active menu item fix */
.sidebar-menu li.active {
    font-weight: 600;
}

/* Topbar fix */
.top-header {
    padding: 18px 28px;
}

.top-header h1 {
    font-size: 20px;
}

/* Card overview fix */
.card p {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-bottom: 4px;
}

/* ===========================
   ACTION BUTTON CARDS
=========================== */
.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.action-btn-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.2s;
}

.action-btn-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.action-btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.action-btn-label {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 4px !important;
}

.action-btn-sub {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* ===========================
   LEAVE FORM FIX
=========================== */
.leave-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 100%;
}

.leave-form .full-width {
    grid-column: 1 / -1;
}

.leave-form label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

@media (max-width: 768px) {
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }

    .leave-form {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   MOBILE FIXES
=========================== */
@media (max-width: 768px) {

    /* Sidebar fix */
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .sidebar-header {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .sidebar-logo {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
    }

    .sidebar-header h2 {
        font-size: 13px;
        margin-top: 0;
    }

    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        padding: 8px;
        gap: 4px;
        margin-top: 0;
    }

    .sidebar-menu li {
        padding: 6px 10px;
        font-size: 11px;
        margin-bottom: 0;
        border-radius: 6px;
    }

    .logout-btn {
        border-top: none;
        padding-top: 6px !important;
    }

    /* Main content fix */
    .main-content {
        margin-left: 0;
    }

    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .top-header h1 {
        font-size: 16px;
    }

    #liveClock {
        font-size: 11px;
    }

    .content-area {
        padding: 12px;
    }

    /* Stat cards — 2 columns on mobile */
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card p {
        font-size: 28px;
    }

    /* Action button cards — stack vertically */
    .action-buttons-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Leave form — single column */
    .leave-form {
        grid-template-columns: 1fr;
    }

    /* Tables — horizontal scroll */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    thead th {
        font-size: 10px;
        padding: 10px 8px;
    }

    tbody td {
        font-size: 12px;
        padding: 10px 8px;
    }

    /* Cards */
    .card {
        padding: 16px;
    }

    .card h2 {
        font-size: 14px;
    }

}

@media (max-width: 480px) {

    .sidebar-menu li {
        font-size: 10px;
        padding: 5px 8px;
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-card p {
        font-size: 24px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
    }

}

/* ===========================
   PRIORITY BADGES
=========================== */
.priority-high {
    background: #fee2e2;
    color: #991b1b;
}

.priority-medium {
    background: #fef3c7;
    color: #92400e;
}

.priority-low {
    background: #dcfce7;
    color: #166534;
}


.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}


/* ===========================
   HAMBURGER MENU
=========================== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #1a1a2e;
    padding: 4px 8px;
    border-radius: 6px;
    width: auto;
    margin: 0;
    line-height: 1;
}

.hamburger-btn:hover {
    background: #f1f5f9;
    transform: none;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100vh;
        width: 240px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }

}

/* ===========================
   ATTENDANCE CALENDAR
=========================== */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.cal-header div {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    padding: 6px 0;
    text-transform: uppercase;
}

.cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: default;
    transition: all 0.2s;
}

.cal-day.today {
    border: 2px solid #00b894;
    font-weight: 700;
}

.cal-day.present {
    background: #00b894;
    color: white;
    border-color: #00b894;
}

.cal-day.absent {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.cal-day.leave {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.cal-day.weekend {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.cal-day.future {
    background: #fff;
    color: #cbd5e1;
    border-color: #f1f5f9;
}

.cal-day.empty {
    background: transparent;
    border-color: transparent;
}

.pin-box {
    cursor: pointer;
}

.pin-boxes:hover .pin-box {
    border-color: #cbd5e1;
}

@media (max-width: 480px) {
    .cal-day {
        font-size: 11px;
        border-radius: 6px;
    }

    .cal-header div {
        font-size: 9px;
    }
}

/* ===========================
   DARK MODE
=========================== */
body.dark {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark .sidebar {
    background: #0f172a;
    border-right: 1px solid #1e293b;
}

body.dark .sidebar-menu li {
    color: rgba(255,255,255,0.5);
}

body.dark .sidebar-menu li.active {
    background: #00b894;
    color: #fff;
}

body.dark .sidebar-menu li:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
}

body.dark .main-content {
    background: #0f172a;
}

body.dark .top-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
}

body.dark .top-header h1 {
    color: #f1f5f9;
}

body.dark #liveClock {
    background: #334155;
    color: #94a3b8;
}

body.dark .card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .card h2 {
    color: #f1f5f9;
}

body.dark .card p {
    color: #94a3b8;
}

body.dark .stat-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark .stat-card h3 {
    color: #64748b;
}

body.dark .stat-card p {
    color: #f1f5f9;
}

body.dark table {
    background: #1e293b;
}

body.dark thead th {
    background: #0f172a;
    color: #64748b;
    border-bottom: 1px solid #334155;
}

body.dark tbody td {
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
}

body.dark tbody tr:hover {
    background: #334155;
}

body.dark .table-container {
    border-color: #334155;
}

body.dark input,
body.dark textarea,
body.dark select,
body.dark .admin-select {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark input:focus,
body.dark textarea:focus,
body.dark .admin-select:focus {
    border-color: #00b894;
    background: #1e293b;
}

body.dark .action-btn-card {
    border-color: #334155;
    background: #1e293b;
}

body.dark .action-btn-label {
    color: #f1f5f9 !important;
}

body.dark .action-btn-sub {
    color: #64748b !important;
}

body.dark #darkModeBtn {
    border-color: #334155;
    color: #f1f5f9;
    background: #1e293b;
}

body.dark .hamburger-btn {
    color: #f1f5f9;
}

body.dark .hamburger-btn:hover {
    background: #334155;
}

body.dark label {
    color: #94a3b8;
}

body.dark .cal-day {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

body.dark .cal-day.future {
    background: #0f172a;
    color: #334155;
}

body.dark .cal-day.empty {
    background: transparent;
    border-color: transparent;
}

body.dark .cal-day.weekend {
    background: #1e293b;
    color: #475569;
}

body.dark .cal-header div {
    color: #475569;
}

body.dark .profile-avatar {
    background: #00b894;
}

body.dark .logout-btn {
    color: rgba(255,100,100,0.7) !important;
}

body.dark .cal-day.present {
    background: #00b894 !important;
    color: white !important;
    border-color: #00b894 !important;
}

body.dark .cal-day.absent {
    background: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
}

body.dark .cal-day.leave {
    background: #f59e0b !important;
    color: white !important;
    border-color: #f59e0b !important;
}

body.dark .cal-day.today {
    border: 2px solid #00b894 !important;
    font-weight: 700 !important;
}


.top-header {
    flex-wrap: nowrap;
    overflow: hidden;
}

#liveClock {
    white-space: nowrap;
    font-size: 12px;
}

@media (max-width: 480px) {
    #liveClock {
        display: none;
    }
}

body.dark #workTimerCard {
    background: #1e293b !important;
    border-color: #334155 !important;
}

body.dark #workTimerCard p:first-child {
    color: #94a3b8 !important;
}

body.dark .action-btn-icon {
    background: #334155 !important;
}

body.dark .action-btn-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}


/* Matrix dark mode */
body.dark #matrixContainer table thead th {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

body.dark #matrixContainer table tbody td:first-child {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
}

body.dark #matrixContainer table tbody td {
    border-color: #334155 !important;
}