/* ============================= */
/* MODERN BASE RESET & TYPOGRAPHY */
/* ============================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family:
        "Inter",
        "Open Sans",
        system-ui,
        -apple-system,
        sans-serif;
    color: #111827;
    background: #f7f8fa;
    line-height: 1.5;
}

.main {
    margin: 20px auto 40px;
}
/* ============================= */
/* TOP NAVBAR */
/* ============================= */
/* Hide hamburger by default (desktop) */
.mobile-toggle {
    display: none;
}

.topbar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.topbar .logo img {
    max-height: 40px;
}

.topbar nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.topbar nav a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.topbar nav a:hover {
    background: #f3f4f6;
}

/* Profile Dropdown */
.dropdown {
    position: relative;
}

.dropdown .profile_picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 160px;
    flex-direction: column;
    z-index: 100;
}

.dropdown-content.show {
    display: flex;
}

.dropdown-content a {
    padding: 10px 15px;
    font-size: 14px;
    color: #111827;
}

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

@media (max-width: 768px) {
    .topbar .mobile-toggle {
        display: block;
        cursor: pointer;
        font-size: 20px;
    }

    .topbar nav {
        display: none;
    }

    .topbar nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        padding: 10px;
        gap: 10px;
    }
}

/* ============================= */
/* GREETINGS / PAGE HEADERS */
/* ============================= */
.greetings,
.dashboard-header {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.greetings .Title_navbar,
.dashboard-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.dashboard-header .greeting {
    font-size: 14px;
    color: #6b7280;
}

.button {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================= */
/* BUTTONS (Universal) */
/* ============================= */
.btn {
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    color: #fff;
    background: #1d4ed8;
}

.btn-large {
    padding: 10px 18px;
}

.btn-small {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
}

.btn-grey {
    background: #f3f4f6;
    color: #111827;
    border-radius: 10px;
    padding: 8px 15px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-grey:hover {
    background: #e5e7eb;
}

/* ============================= */
/* DASHBOARD PANEL CARDS */
/* ============================= */
.panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.panel .card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

.panel .card h1 {
    font-size: 28px;
    color: #111827;
    margin-bottom: 5px;
}

.panel .card p {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================= */
/* LIST / TABLES */
/* ============================= */
/* Table container with margin like other sections */
.List_Column {
    max-width: 1280px;
    margin: 20px auto 40px; /* top, auto center, bottom */
    padding: 0 20px; /* horizontal padding like other sections */
}

/* Modern table full width with rounded corners */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px; /* space above table */
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Table cells */
.modern-table th,
.modern-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
}

/* Table header */
.modern-table th {
    background: #f3f4f6;
    font-weight: 600;
}

/* Alternate row background */
.modern-table tr:nth-child(even) {
    background: #f7f8fa;
}

/* Profile pictures */
.modern-table img.employee-picture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* ============================= */
/* SEARCH BAR / FILTERS */
/* ============================= */
.Search_Bar_Container {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px 20px;
}

.Search_Bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.Search_Input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

.Search_Input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.Search_Button {
    display: flex;
    gap: 10px;
}

/* ============================= */
/* PAGINATION */
/* ============================= */
.pagination {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    margin: 20px 0;
    list-style: none;
    padding-left: 0;
}

.pagination li {
    margin: 0;
}

.pagination li a,
.pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s;
}

.pagination li a:hover {
    background: #f3f4f6;
}

.pagination li.active span {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

/* ============================= */
/* LIST CARDS / NOTICES / EVENTS */
/* ============================= */
.list-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

.list-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111827;
}

.list-card .list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #374151;
}

.list-card .list-item:last-child {
    border-bottom: none;
}

.list-card .list-item time {
    font-size: 12px;
    color: #9ca3af;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */
@media (max-width: 768px) {
    .modern-table th,
    .modern-table td,
    .List_Column th,
    .List_Column td {
        padding: 8px;
        font-size: 12px;
    }

    .Search_Bar {
        flex-direction: column;
        align-items: stretch;
    }

    .Search_Button {
        justify-content: flex-start;
    }

    .btn-small {
        padding: 4px 8px;
        font-size: 10px;
    }

    .topbar nav {
        display: none;
    }

    .dropdown .profile_picture {
        width: 32px;
        height: 32px;
    }

    .topbar .mobile-toggle {
        display: block;
        cursor: pointer;
        font-size: 20px;
    }

    .topbar nav.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        padding: 10px;
        gap: 10px;
    }
}

/* ============================= */
/* MODALS (Confirmation / Alerts) */
/* ============================= */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-dialog {
    position: relative;
    margin: 80px auto;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    background: #fff;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header,
.modal-body,
.modal-footer {
    padding: 20px;
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
}

.modal-body {
    font-size: 14px;
    color: #374151;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-footer .btn {
    margin: 0;
}

/* Close Button (optional) */
.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 40px 10px;
    }
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================= */
/* FORM STYLING (Universal) */
/* ============================= */

.Form_Section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
}

.Form_Body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.Form_Label {
    font-weight: 500;
    color: #111827;
    margin-bottom: 5px;
    display: inline-block;
}

.Form_Input_Section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.Form_Input {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    color: #111827;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.Form_Input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.btn-green {
    background-color: #10b981; /* Tailwind green-500 */
    color: #fff;
    padding: 10px 16px;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-green:hover {
    background-color: #059669; /* Darker green */
    color: #fff;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .Form_Section {
        padding: 15px;
    }

    .Form_Input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .btn-green {
        padding: 8px 12px;
        font-size: 13px;
    }
}
/* ============================= */
/* UNIVERSAL CONTENT SECTIONS */
/* ============================= */

.section {
    max-width: 1280px;
    margin: 20px auto;
    padding: 0 20px;

    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
}
/*
.section > * {

} */

/* ============================= */
/* SECTION HEADER */
/* ============================= */

.top_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.section_title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* ============================= */
/* SECTION CONTENT GRID */
/* ============================= */

.section_content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* ============================= */
/* INFORMATION TEXT */
/* ============================= */

.title_information {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.information {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* ============================= */
/* BUTTON VARIANTS */
/* ============================= */

.btn-brand {
    background: #2563eb;
    color: #fff;
}

.btn-brand:hover {
    background: #1d4ed8;
    color: #fff;
}

.btn-red {
    background: #ef4444;
    color: #fff;
}

.btn-red:hover {
    background: #dc2626;
    color: #fff;
}

/* ============================= */
/* PROFILE IMAGE CENTERING */
/* ============================= */

.section_content img.employee-picture {
    display: block;
    margin: 0 auto;
}

/* ============================= */
/* MODAL FIX (Bootstrap + Custom Friendly) */
/* ============================= */

.modal.fade .modal-dialog {
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.modal-content {
    border-radius: 14px;
    border: none;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ============================= */
/* RESPONSIVE TWEAKS */
/* ============================= */

@media (max-width: 768px) {
    .section {
        padding: 0 15px;
    }

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

    .section_title {
        font-size: 16px;
    }
}
/* ============================= */
/* MODERN REALTIME CLOCK */
/* ============================= */
.modern-clock {
    font-size: 60px;
    font-weight: 700;
    color: #2563eb; /* brand color */
    text-align: center;
    margin: 30px 0;
    font-family: "Inter", sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* small underline for style */
.modern-clock::after {
    content: "";
    display: block;
    width: 150px;
    height: 4px;
    background: #2563eb;
    margin: 10px auto 0;
    border-radius: 2px;
}
