/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================================
   LOGIN PAGE
========================================================= */

.login-wrapper {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #e3f2fd, #f5f7fa);
}

.login-box {
    width: 420px;
    background: white;

    padding: 40px;

    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    color: #0d47a1;
    margin-bottom: 10px;
    font-size: 30px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.company-logo {
    width: 260px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;

    border-radius: 10px;
    border: 1px solid #cfd8dc;

    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 8px rgba(21,101,192,0.25);
}

.login-btn {
    width: 100%;
    padding: 15px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(90deg, #1565c0, #1976d2);

    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.login-btn:hover {
    background: linear-gradient(90deg, #0d47a1, #1565c0);
}

.error {
    margin-top: 15px;
    color: red;
    text-align: center;
    font-weight: bold;
}

/* =========================================================
   DASHBOARD LAYOUT
========================================================= */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 240px;

    background: linear-gradient(180deg, #020617, #0f172a);

    color: white;

    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    
    box-shadow: none;
 
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-header h2 {
    font-size: 26px;
    line-height: 1.4;
}

.sidebar-menu {
    flex: 1;
    padding-top: 15px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px 22px;

    color: #e2e8f0;
    text-decoration: none;

    font-weight: 600;

    transition: 0.25s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
}

/* =========================================================
   TOP HEADER
========================================================= */

.main-header {
    background: linear-gradient(90deg, #020617, #0f172a);

    color: white;

    padding: 22px 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-header h1 {
    font-size: 34px;
}

.page-content {
    padding: 25px;
}

/* =========================================================
   PROFILE MENU
========================================================= */

.profile-menu {
    position: relative;
}

.profile-btn {
    background: transparent;
    border: none;

    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.profile-dropdown {
    display: none;

    position: absolute;

    top: 42px;
    right: 0;

    background: white;

    min-width: 170px;

    border-radius: 10px;

    overflow: hidden;

    box-shadow: 0 5px 18px rgba(0,0,0,0.15);

    z-index: 999;
}

.profile-dropdown a {
    display: block;

    padding: 14px 18px;

    color: #111827;

    text-decoration: none;
    font-weight: 600;
}

.profile-dropdown a:hover {
    background: #f3f4f6;
}

/* =========================================================
   SUCCESS BOX
========================================================= */

.success-box {
    background: #e8f5e9;

    color: #166534;

    padding: 15px;

    border-radius: 10px;

    margin-bottom: 25px;

    font-weight: bold;
}

/* =========================================================
   BUTTON ROW
========================================================= */

.action-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.action-row button {
    flex: 1;
}

/* =========================================================
   BUTTONS
========================================================= */

button {
    border: none;

    padding: 15px;

    border-radius: 8px;

    color: white;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

button:disabled {
    background: #d4d4d4;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

.btn-login {
    background: #16a34a;
}

.btn-logout {
    background: #f59e0b;
}

.btn-leave {
    background: #8e24aa;
}

.btn-download {
    background: #16a34a;
}

.btn-admin {
    background: #1565c0;
}

.small-btn {
    padding: 10px 14px;
    width: auto;
}

/* =========================================================
   MODERN CARD
========================================================= */

.modern-card {
    background: white;

    padding: 25px;

    border-radius: 14px;

    box-shadow: 0 2px 12px rgba(0,0,0,0.08);

    margin-bottom: 25px;
}

.modern-card h2,
.modern-card h3 {
    color: #0d47a1;
    margin-bottom: 14px;
}

.modern-card p {
    color: #555;
    margin-bottom: 15px;
}

/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* =========================================================
   TABLES
========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
}

.leave-table {
    width: 100%;
    border-collapse: collapse;
}

/* ADD THIS INSTEAD */
.leave-table thead,
.leave-table th,
table th {
    background: #1453b8 !important;
    color: white !important;
}

.leave-table th,
.leave-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.leave-table tbody tr:hover {
    background: #f8fafc;
}

.no-data {
    text-align: center !important;
    padding: 25px !important;
    color: #777;
    font-weight: bold;
}

/* =========================================================
   LEAVE FORM
========================================================= */

.leave-form {
    display: grid;
    gap: 12px;
}

.leave-form label {
    font-weight: bold;
    color: #0d47a1;
}

.leave-form input,
.leave-form select,
.leave-form textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #cfd8dc;

    border-radius: 8px;
}

.leave-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* =========================================================
   DONUT CHART
========================================================= */

.chart-card {
    margin-top: 20px;
}

.donut-box {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.donut-chart {
    width: 180px;
    height: 180px;

    border-radius: 50%;

    background: var(--chart-bg);

    position: relative;
}

.donut-chart::after {
    content: attr(data-label);

    position: absolute;

    width: 95px;
    height: 95px;

    background: white;

    border-radius: 50%;

    top: 42px;
    left: 42px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 22px;
    font-weight: bold;

    color: #111827;
}

.chart-stats p {
    margin: 12px 0;
    font-weight: bold;
}

.chart-stats span {
    display: inline-block;

    width: 8px;
    height: 35px;

    border-radius: 5px;

    margin-right: 10px;
}

.blue { background: #1683f3; }
.yellow { background: #facc15; }
.red { background: #ef4444; }

/* =========================================================
   STATUS COLORS
========================================================= */

.status-approved {
    color: #16a34a;
    font-weight: bold;
}

.status-rejected {
    color: #dc2626;
    font-weight: bold;
}

.status-pending {
    color: #f59e0b;
    font-weight: bold;
}

/* =========================================================
   WORK UPDATE IMPROVED DESIGN
========================================================= */

.work-update-card {
    background: #ffffff;

    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08);

    height: 100%;
}

.work-update-card h3 {
    color: #0d47a1;

    margin-bottom: 14px;

    font-size: 22px;
}

.work-update-card p {
    color: #555;

    margin-bottom: 22px;

    font-size: 15px;

    line-height: 1.6;
}

.work-textarea {
    width: 100%;

    min-height: 180px;

    padding: 18px;

    border-radius: 14px;

    border: 1px solid #d6dce3;

    background: #f8fafc;

    resize: vertical;

    font-size: 15px;

    transition: 0.25s;

    margin-bottom: 22px;
}

.work-textarea:focus {
    outline: none;

    border-color: #2563eb;

    background: white;

    box-shadow: 0 0 12px rgba(37,99,235,0.15);
}

.work-submit-btn {
    background: linear-gradient(90deg, #2563eb, #3b82f6);

    color: white;

    border: none;

    padding: 14px 24px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

.work-submit-btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(37,99,235,0.25);
}

.work-locked-btn {
    background: #d6d6d6;

    color: #555;

    border: none;

    padding: 14px 22px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: bold;

    cursor: not-allowed;
}

.work-alert {
    margin-top: 20px;

    background: #ecfdf3;

    color: #15803d;

    border-left: 5px solid #16a34a;

    padding: 16px;

    border-radius: 10px;

    font-weight: bold;
}

/* RIGHT SIDE INFO CARD */

.work-info-card {
    background: #ffffff;

    border-radius: 18px;

    padding: 30px;

    box-shadow: 0 4px 18px rgba(0,0,0,0.08);

    height: 100%;
}

.work-info-card h3 {
    color: #0d47a1;

    margin-bottom: 25px;

    font-size: 22px;
}

.work-info-table {
    width: 100%;
    border-collapse: collapse;
}

.work-info-table tr td {
    padding: 16px 0;

    border-bottom: 1px solid #e5e7eb;

    font-size: 15px;
}

.work-info-table tr td:first-child {
    font-weight: bold;

    color: #111827;
}

.work-status-open {
    background: #dcfce7;
    color: #15803d;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 13px;
}

.work-status-locked {
     background: #fee2e2;
    color: #dc2626;
    padding: 8px 14px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 13px;    
}
/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .dashboard-layout {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        height: auto;

        display: block;
    }

    .sidebar-header {
        padding: 16px;
    }

    .sidebar-header h2 {
        font-size: 20px;
    }

    .sidebar-menu {
        display: flex;

        overflow-x: auto;

        white-space: nowrap;

        gap: 10px;

        padding: 10px;
    }

    .sidebar-menu a {
        flex: 0 0 auto;

        border-radius: 8px;

        padding: 10px 14px;

        font-size: 13px;
    }

    .main-content {
        margin-left: 0;
    }

    .main-header {
        padding: 15px;
    }

    .main-header h1 {
        font-size: 22px;
    }

    .page-content {
        padding: 12px;
    }

    .action-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .donut-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .donut-chart {
        width: 140px;
        height: 140px;
    }

    .donut-chart::after {
        width: 72px;
        height: 72px;
        top: 34px;
        left: 34px;
        font-size: 18px;
    }

    .leave-table {
        min-width: 700px;
    }

    .work-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .work-filter-row select,
    .work-filter-row button {
        width: 100%;
    }

    .login-box {
        width: 92%;
        padding: 28px;
    }
}
.main-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;

    background: #f1f5f9;
}

.main-header,
.sidebar {
    box-shadow: none;
}
/*===========================================================
       login csss
=============================================================*/

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.login-links a {
    color: #1565c0;
    font-weight: bold;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.success-message {
    margin-top: 15px;
    color: #16a34a;
    text-align: center;
    font-weight: bold;
}
/*=======================================================================
             emergency leave
========================================================================*/
.emergency-alert {

    background: #fee2e2;

    color: #b91c1c;

    padding: 16px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-weight: bold;

    border-left: 6px solid #dc2626;
}

/*===========================================================================
             annocemnet counting csss
===========================================================================*/

.notify-badge {

    background: #ef4444;

    color: white;

    font-size: 12px;

    font-weight: bold;

    padding: 3px 8px;

    border-radius: 50px;

    margin-left: 8px;

    display: inline-block;

    min-width: 22px;

    text-align: center;

    box-shadow: 0 2px 8px rgba(239,68,68,0.35);
}
/* =========================
   MOBILE RESPONSIVE SIDEBAR
========================= */

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
}

@media screen and (max-width: 768px) {

    .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #111827;
        border: none;
        font-size: 24px;
        font-weight: bold;
        border-radius: 10px;
        padding: 6px 12px;
        cursor: pointer;
    }

    .dashboard-layout {
        display: block !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0;
        left: -260px !important;
        width: 240px !important;
        height: 100vh !important;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .sidebar.mobile-open {
        left: 0 !important;
    }

    .sidebar-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }

    .sidebar-menu a {
        display: block !important;
        width: 100% !important;
        padding: 14px 18px !important;
        box-sizing: border-box !important;
        white-space: nowrap;
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .main-header {
        width: 100% !important;
        padding: 14px 16px !important;
    }

    .main-header h1 {
        font-size: 20px !important;
    }

    .page-content {
        padding: 12px !important;
    }

    .modern-card {
        width: 100%;
        overflow-x: auto;
    }

    .leave-table {
        min-width: 700px;
    }
}
@media screen and (max-width: 768px) {

    #leaveStatusSection .table-wrapper {
        overflow-x: hidden !important;
    }

    #leaveStatusSection .leave-table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 11px;
    }

    #leaveStatusSection .leave-table th,
    #leaveStatusSection .leave-table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
        word-break: break-word;
        white-space: normal;
    }

    #leaveStatusSection .modern-card {
        padding: 16px !important;
    }

    #leaveStatusSection h3 {
        font-size: 18px !important;
    }
}
/* MOBILE ANNOUNCEMENTS FIX */

@media screen and (max-width: 768px) {

    #announcementSection .table-wrapper,
    #announcementSection .announcement-container {
        overflow-x: hidden !important;
    }

    #announcementSection .leave-table,
    #announcementSection table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 11px;
    }

    #announcementSection .leave-table th,
    #announcementSection .leave-table td,
    #announcementSection table th,
    #announcementSection table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
        white-space: normal !important;
        word-break: break-word;
    }

    #announcementSection .modern-card {
        padding: 16px !important;
    }

    #announcementSection h3 {
        font-size: 18px !important;
    }

    #announcementSection p,
    #announcementSection .announcement-message {
        font-size: 12px !important;
        line-height: 1.5;
        word-break: break-word;
    }
}
/* =========================
   ADMIN MOBILE TABLE FIT
========================= */

@media screen and (max-width: 768px) {

    /* LOGIN APPROVALS */

    #loginApprovalsSection .table-wrapper {
        overflow-x: hidden !important;
    }

    #loginApprovalsSection table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 10px;
    }

    #loginApprovalsSection th,
    #loginApprovalsSection td {
        padding: 6px 4px !important;
        font-size: 10px !important;
        word-break: break-word;
        white-space: normal;
    }

    /* LEAVE REQUESTS */

    #pendingLeaveSection .table-wrapper {
        overflow-x: hidden !important;
    }

    #pendingLeaveSection table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 10px;
    }

    #pendingLeaveSection th,
    #pendingLeaveSection td {
        padding: 6px 4px !important;
        font-size: 10px !important;
        word-break: break-word;
        white-space: normal;
    }

    /* WORK UPDATES */

    #workUpdatesSection .table-wrapper {
        overflow-x: hidden !important;
    }

    #workUpdatesSection table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 10px;
    }

    #workUpdatesSection th,
    #workUpdatesSection td {
        padding: 6px 4px !important;
        font-size: 10px !important;
        word-break: break-word;
        white-space: normal;
    }

    /* VIEW ATTENDANCE */

    #viewAttendanceSection .table-wrapper {
        overflow-x: hidden !important;
    }

    #viewAttendanceSection table {
        min-width: 100% !important;
        width: 100% !important;
        table-layout: fixed;
        font-size: 10px;
    }

    #viewAttendanceSection th,
    #viewAttendanceSection td {
        padding: 6px 4px !important;
        font-size: 10px !important;
        word-break: break-word;
        white-space: normal;
    }
}
/* TODAY LEAVE MOBILE FULL FIT */

@media screen and (max-width: 768px) {

    #todayLeaveSection .modern-card {
        overflow: hidden !important;
        padding: 14px !important;
    }

    #todayLeaveSection .table-wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    #todayLeaveSection .leave-table {
        width: 100% !important;
        min-width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    #todayLeaveSection .leave-table th,
    #todayLeaveSection .leave-table td {

        font-size: 9px !important;
        padding: 5px 3px !important;

        white-space: normal !important;
        word-break: break-word !important;

        overflow-wrap: break-word !important;
    }

    #todayLeaveSection h2 {
        font-size: 18px !important;
    }

    #todayLeaveSection p {
        font-size: 12px !important;
    }
}
/* =========================
   MOBILE PROFESSIONAL UI
========================= */

@media screen and (max-width: 768px) {

    /* MAIN CARD */

    .modern-card {
        background: #ffffff;
        border-radius: 18px;
        padding: 18px !important;
        margin-bottom: 18px;
        box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    }

    /* CARD TITLE */

    .modern-card h2 {
        font-size: 20px !important;
        margin-bottom: 10px;
        color: #0f4aa3;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modern-card p {
        font-size: 14px;
        color: #555;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    /* INPUTS */

    .modern-card select,
    .modern-card input[type="date"],
    .modern-card input[type="text"] {

        width: 100%;
        height: 44px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        padding: 0 12px;
        font-size: 14px;
        margin-bottom: 12px;
        background: #fff;
    }

    /* DATE ROW */

    .date-filter-row {
        display: flex;
        gap: 10px;
        margin-bottom: 12px;
    }

    .date-filter-row input {
        flex: 1;
    }

    /* BUTTONS */

    .modern-card button,
    .modern-card .btn {

        width: 100%;
        height: 46px;

        border: none;
        border-radius: 12px;

        font-size: 15px;
        font-weight: 600;

        margin-bottom: 10px;

        transition: 0.2s ease;
    }

    /* PRIMARY BUTTON */

    .btn-primary,
    .view-btn {

        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
    }

    /* SUCCESS BUTTON */

    .btn-success,
    .download-btn {

        background: linear-gradient(135deg, #16a34a, #15803d);
        color: white;
    }

    /* WARNING BUTTON */

    .btn-warning,
    .clear-btn {

        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
    }

    /* TABLE */

    .table-wrapper {
        margin-top: 14px;
        border-radius: 12px;
        overflow: hidden;
    }

    .leave-table,
    table {

        width: 100%;
        border-collapse: collapse;
        background: white;
    }

    .leave-table th,
    table th {

        background: #1453b8;
        color: white;

        font-size: 11px;
        padding: 10px 4px;
        text-align: center;
    }

    .leave-table td,
    table td {

        font-size: 10px;
        padding: 10px 4px;
        text-align: center;
        word-break: break-word;
    }

    /* FILTER SPACING */

    .filter-group {
        margin-bottom: 12px;
    }

    /* HEADER */

    .main-header {
        padding: 14px 16px !important;
    }

    .main-header h1 {
        font-size: 22px !important;
    }
}
/* =========================================================
   VIEW ATTENDANCE & FILTERS LAOUT (FIXED DESKTOP)
========================================================= */

/* Desktop layout container for filters */
.work-filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns on desktop */
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-end; /* Aligns inputs perfectly at the bottom */
}

/* Ensure filter groups stack label above the input */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #0d47a1;
    font-size: 14px;
}

/* Standardized desktop inputs */
.work-filter-row select,
.work-filter-row input[type="date"] {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #cfd8dc;
    padding: 0 14px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.work-filter-row select:focus,
.work-filter-row input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 8px rgba(37,99,235,0.15);
}

/* Action button row layout */
.filter-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.view-btn, .clear-btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 10px;
    color: white !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.view-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.clear-btn {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.view-btn:hover, .clear-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   MOBILE RESPONSIVE OVERRIDES (KEEP EXISTING MOBILE UI)
========================================================= */
@media screen and (max-width: 768px) {
    .work-filter-row {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 12px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .view-btn, .clear-btn {
        width: 100% !important;
    }
}
/* Attendance & Leaves Dynamic Filter System */
.attendance-filter-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.attendance-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.attendance-filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.attendance-filter-select,
.attendance-filter-input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    height: 44px;
    box-sizing: border-box;
}

.attendance-filter-select {
    min-width: 220px;
}

.attendance-button-group {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
}

/* Primary View Button Styles */
.attendance-button-group .view-btn {
    background-color: #1683f3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    height: 44px;
}

/* Orange Clear Button Styles */
.attendance-button-group .clear-btn {
    background-color: #f57c00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    height: 44px;
    transition: background-color 0.2s ease;
}

.attendance-button-group .clear-btn:hover {
    background-color: #e65100;
}

/* Badge & Row Fallback placeholders */
.badge-approved-status {
    background-color: #fee2e2;
    color: #ef4444;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.no-data-placeholder {
    text-align: center;
    padding: 20px;
    color: #777;
}
/* Core Dashboard Layout Utilities */
.hidden-panel-init {
    display: none;
}

.text-danger-alert {
    color: #ef4444;
    font-weight: 500;
}

.margin-top-md {
    margin-top: 20px;
}

/* Work Update Form Typography Utilities */
.work-note-text {
    margin-top: 15px;
    font-style: italic;
    color: #777777;
    font-size: 13.5px;
}

/* Administrative Data Filters Row Overrides */
.admin-filter-actions {
    margin-top: 15px;
}

.btn-excel-download {
    height: 48px;
    border-radius: 10px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-excel-download:active {
    transform: scale(0.98);
}
/* Prevents the table layout from snapping or collapsing during background updates */
.no-data-row-placeholder {
    text-align: center;
    padding: 30px;
    color: #777777;
    font-weight: 500;
    font-size: 14px;
    height: 60px;
}
/* Core Layout Anchor and Padding Rules */
.filter-buttons .btn-download {
    height: 44px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* Anchors table space during updates to completely prevent page shaking */
.no-data-row-placeholder {
    text-align: center;
    padding: 30px;
    color: #777777;
    font-weight: 500;
    font-size: 14px;
    height: 60px;
}

/* Responsive Form Matrix Container */
.responsive-filter-box {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 500px;
}

.responsive-filter-box .filter-group {
    flex: 1;
}

/* Base styling for date inputs */
.responsive-filter-box .filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #fff;
    min-height: 42px;
    position: relative;
}

/* ❌ HIDDEN ON PC: Stops custom text from overlapping native fields */
.responsive-filter-box .filter-group input[type="date"]::before {
    content: "";
    display: none;
}

/* Scoped button container for the employee download section card */
.download-section-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    max-width: 500px; 
    width: 100%;
}

/* Distributes button sizes to exactly 50% width each (half-half split) */
.download-section-buttons button,
.download-section-buttons .btn-download,
.download-section-buttons .clear-btn {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    height: 45px;       
    flex: 1;          
    width: 50%;       
}

/* Color Themes */
.download-section-buttons .btn-download {
    background: #0b7d28;
    color: white;
}

.download-section-buttons .clear-btn {
    background: #ff8c00; 
    color: white;       
}

/* Flexbox Stacking Rules for Mobile Viewports */
@media screen and (max-width: 768px) {
    .responsive-filter-box {
        flex-direction: column;
        gap: 10px;
    }

    /* ✅ MOBILE ONLY: Safeguards visual hint formatting inside empty mobile inputs */
    .responsive-filter-box .filter-group input[type="date"]::before {
        content: "mm/dd/yyyy";
        display: block;
        position: absolute;
        color: #aaa;
        left: 10px;
        top: 11px;
    }

    /* Clear the custom text mask when a user selects a date on mobile */
    .responsive-filter-box .filter-group input[type="date"]:focus::before,
    .responsive-filter-box .filter-group input[type="date"]:valid::before {
        content: "" !important;
        display: none !important;
    }

    .download-section-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .download-section-buttons button,
    .download-section-buttons .btn-download,
    .download-section-buttons .clear-btn {
        width: 100% !important; 
        margin-left: 0 !important;
        flex: 1 1 auto;
    }
}
/* Centralized Toast Alert Container */
.toast-notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: white;
    padding: 15px 35px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Red theme override for logout actions */
.toast-notification.toast-logout {
    background: #e74c3c;
}

/* Visibility Trigger Toggle Class */
.toast-notification.show-toast {
    top: 30px;
}
/* Container for stackable top-right notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: Arial, sans-serif;
}

/* Toast Card Base matching image_0c82e4.png */
.custom-toast {
    background: #ffffff;
    color: #333333;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #2ecc71; /* Green success accent */
}

/* Entry trigger state */
.custom-toast.toast-show {
    transform: translateX(0);
}

/* Status Type Overrides */
.custom-toast.toast-error {
    border-left-color: #e74c3c; /* Red danger accent */
}

/* Icon Styles */
.custom-toast .toast-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Text Context Styles */
.custom-toast .toast-text {
    font-size: 14px;
    font-weight: 500;
}

/* Live Countdown Progress Bar matching image_0c82e4.png */
.custom-toast .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #2ecc71;
    transform-origin: left;
    animation: toastprogress 2.5s linear forwards;
}

.custom-toast.toast-error .toast-progress {
    background: #e74c3c;
}

@keyframes toastprogress {
    to {
        transform: scaleX(0);
    }
}
/* =======================================================================
   ✅ UPDATED & ENLARGED PASSWORD TOGGLE SPECIFICATIONS
======================================================================= */

.input-group {
    position: relative; /* Maintains anchoring constraints for index.php */
}

.input-group input[type="password"],
.input-group input[type="text"] {
    padding-right: 50px !important; /* Slightly increased padding to protect the larger icon */
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    
    /* 🌟 ENLARGED LOOK & EASIER TO CLICK */
    font-size: 22px;       /* Increased from 16px/18px so it stands out clearly */
    padding: 6px;          /* Invisible tap padding to make it much easier to hit on mobile phones */
    
    z-index: 99;           /* Stays on top of input fields */
    user-select: none;     /* Prevents text selection highlighting when double-clicked */
    color: #888888;
    display: inline-flex;  /* Centers emoji icon cleanly inside the box layout */
    align-items: center;
    justify-content: center;
}

.password-toggle-icon:hover {
    color: #2563eb;        /* Turns subtle blue on hover to give clear visual feedback */
}
