/**
 * GSBook - Master Stylesheet (Classic Emerald Green & Eye-Comfort Edition)
 * โทนสีตามระบบเดิมของบัณฑิตวิทยาลัย (#00873a / #006f1d / พื้นหลังสว่างสบายตา)
 */

/* ==========================================================================
   1. Typography & Global Resets (Eye-Comfort Palette & Spacing)
   ========================================================================== */
:root {
    --primary-color: #30a5ff;
    --primary-hover: #1b8ce6;
    --primary-dark: #006f1d;
    --secondary-color: #64748b;
    --sidebar-width: 268px;
    --sidebar-bg-start: #006f1d;
    --sidebar-bg-end: #00873a;
    --body-bg: #f1f4f7;
    --card-border: #e5ebf2;
    --text-main: #34495e;
    --text-muted: #6c7a89;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
}

body, button, input, optgroup, select, textarea, .btn, .form-control, h1, h2, h3, h4, h5, h6, p, label, table, th, td, .badge, .dropdown-menu, .alert {
    font-family: 'Kanit', 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* FontAwesome Glyph Protection (Ensures icons render correctly regardless of font cascade) */
.fa, .fas, .fa-solid, .far, .fa-regular, .fab, .fa-brands, [class*="fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome" !important;
    font-style: normal !important;
}

body {
    background-color: var(--body-bg);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Remove underlines from all links across the application */
a, a:hover, a:focus, a:active {
    text-decoration: none !important;
}

/* ==========================================================================
   2. Sidebar Navigation (Classic Emerald Green #00873a & #006f1d)
   ========================================================================== */
#sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #006f1d 0%, #00873a 55%, #007230 100%);
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 111, 29, 0.14);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

#sidebar .brand {
    padding: 20px 22px;
    background: #005c18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

#sidebar .brand .brand-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

#sidebar .brand .brand-subtitle {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

#sidebar .sidebar-menu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px 0;
}

/* Custom Sleek Scrollbar for Sidebar */
#sidebar .sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
#sidebar .sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

#sidebar .nav-header {
    padding: 18px 22px 7px;
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebar .nav-header::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* Modern Capsule Menu Items (โทนสีขาวบนพื้นเขียว สบายตาเหมือนระบบเดิม) */
#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.92);
    margin: 4px 14px;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid transparent;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
}

/* Menu Icon Boxes (กล่องไอคอนประจำแต่ละเมนู) */
.nav-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.22s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.icon-home {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.icon-memo {
    background: rgba(255, 255, 255, 0.18);
    color: #ffe082;
}
.icon-missive {
    background: rgba(255, 255, 255, 0.18);
    color: #b3e5fc;
}
.icon-mandate {
    background: rgba(255, 255, 255, 0.18);
    color: #c8e6c9;
}
.icon-retro {
    background: rgba(255, 255, 255, 0.18);
    color: #b2ebf2;
}
.icon-users {
    background: rgba(255, 255, 255, 0.18);
    color: #ffcdd2;
}
.icon-reports {
    background: rgba(255, 255, 255, 0.18);
    color: #e1bee7;
}

/* Hover: Smooth slide and soft glow */
#sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(3px);
}

#sidebar .nav-link:hover .nav-icon-box {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.25);
}

/* Active State: Clean White Pill with Deep Green Text (ชัดเจนและสบายตา) */
#sidebar .nav-link.active {
    color: #006f1d !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 77, 20, 0.2) !important;
    border-color: #ffffff !important;
    font-weight: 600 !important;
    transform: none !important;
}

#sidebar .nav-link.active .nav-icon-box {
    background: rgba(0, 135, 58, 0.14) !important;
    color: #006f1d !important;
    box-shadow: none;
}

#sidebar .nav-link.active::after {
    content: "\f054";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome";
    font-weight: 900;
    font-size: 0.65rem;
    margin-left: auto;
    color: #00873a;
}

/* Sidebar Menu Badge & Text Alignment */
#sidebar .nav-link .nav-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sidebar .nav-link .sidebar-badge {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    background-color: #f9243f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(249, 36, 63, 0.35);
    flex-shrink: 0;
}

#sidebar .nav-link:not(.active) .sidebar-badge {
    margin-left: auto;
}

#sidebar .nav-link.active .sidebar-badge {
    margin-left: auto;
    margin-right: 6px;
    background-color: #e11d48 !important;
}

#sidebar .nav-link.active:has(.sidebar-badge)::after {
    margin-left: 0 !important;
}

/* Sleek Bottom Footer Card */
#sidebar .sidebar-footer {
    flex-shrink: 0;
    background: #005c18;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 12px 16px;
}

#sidebar .sidebar-footer-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ==========================================================================
   3. Content Wrapper & Top Navbar
   ========================================================================== */
#content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background-color: #f4f7f9;
}

.top-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.main-content {
    padding: 28px 32px;
    flex: 1;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================================================
   4. Cards, Headers & Panels (Soft Pastel Banner & Clean Surfaces)
   ========================================================================== */
/* Dashboard Executive Hero Banner (โทนสีพาสเทลชมพูอ่อน/พีชแบบระบบเดิม #ffd2d2 - #ffe8e8 สบายตา ไม่จ้า) */
.hero-banner {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffd2d2 55%, #ffdfdf 100%);
    border: 1px solid #f8bcbc;
    border-radius: var(--radius-lg);
    padding: 26px 32px;
    color: #34495e;
    box-shadow: 0 6px 20px -4px rgba(220, 120, 120, 0.14);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hero-banner h2,
.hero-banner p {
    color: #2c3e50 !important;
}

.hero-banner::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-pill {
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hero-pill-text {
    color: #006f1d !important;
    font-weight: 600;
    font-size: 0.84rem;
}

.hero-pill-badge {
    background-color: #00873a !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Dashboard Information Panels (Data Display, NOT Buttons) */
.stat-card {
    border-radius: var(--radius-md);
    border: 1px solid #e5ebf3;
    background: #ffffff;
    padding: 24px 26px;
    position: relative;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.035);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border-color: #cbd5e1;
    transform: none !important;
}

/* Colored accent indicator line at the top of data card */
.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.stat-card-memo::before { background-color: #ffb53e; }
.stat-card-missive::before { background-color: #30a5ff; }
.stat-card-mandate::before { background-color: #00873a; }

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-category-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-category-memo {
    background-color: #fff8eb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.stat-category-missive {
    background-color: #eef8ff;
    color: #0284c7;
    border: 1px solid #bae6fd;
}
.stat-category-mandate {
    background-color: #ecfdf5;
    color: #006f1d;
    border: 1px solid #a7f3d0;
}

.stat-number-wrapper {
    margin-bottom: 16px;
}

.stat-number {
    font-size: 2.35rem;
    font-weight: 700;
    color: #34495e;
    line-height: 1.05;
    font-feature-settings: "tnum";
}

.stat-unit {
    font-size: 0.88rem;
    color: #6c7a89;
    margin-left: 6px;
    font-weight: 400;
}

.stat-breakdown {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 10px;
    padding: 11px 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #475569;
    margin-bottom: 14px;
}

.stat-footer-link {
    font-size: 0.85rem;
    color: #30a5ff;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.15s ease, transform 0.15s ease;
}

.stat-footer-link:hover {
    color: #00873a;
    text-decoration: none !important;
    transform: translateX(2px);
}

.stat-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon-memo {
    background: rgba(255, 181, 62, 0.15);
    color: #e67e22;
}
.stat-icon-missive {
    background: rgba(48, 165, 255, 0.15);
    color: #30a5ff;
}
.stat-icon-mandate {
    background: rgba(0, 135, 58, 0.14);
    color: #00873a;
}

/* ==========================================================================
   5. Tables & Pagination & Form Controls (Classic #eaeaea Table Header)
   ========================================================================== */
.card {
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.035);
    transition: box-shadow 0.2s ease;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
    padding: 16px 24px;
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid #d5deea;
    padding: 9px 14px;
    font-size: 0.94rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: all 0.18s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #30a5ff;
    box-shadow: 0 0 0 3.5px rgba(48, 165, 255, 0.15);
    background-color: #ffffff;
}

.input-group-text {
    border-radius: var(--radius-sm);
    border: 1px solid #d5deea;
    background-color: #f8fafc;
    color: #64748b;
}

.table {
    margin-bottom: 0;
    word-break: normal;
}

.table thead th {
    background-color: #eaeaea !important;
    color: #34495e !important;
    font-weight: 600;
    border-bottom: 1.5px solid #dcdcdc;
    padding: 14px 18px;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.table tbody td {
    padding: 15px 18px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f5;
    word-break: normal;
    color: #34495e;
    line-height: 1.55;
}

/* Soft Zebra Hover Effect */
.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover td {
    background-color: #f5f9fc;
}

/* Softer text contrast overrides so pure black doesn't strain eyes */
.text-dark {
    color: #34495e !important;
}

.text-secondary {
    color: #55687d !important;
}

.text-muted {
    color: #778899 !important;
}

/* Soft Warning Highlight for Retroactive Pending Rows */
.table-warning.table-opacity-10 td {
    background-color: #fffdf5 !important;
}
.table-warning.table-opacity-10:hover td {
    background-color: #fef9e7 !important;
}

.pagination .page-link {
    color: #475569;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: all 0.15s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

/* SweetAlert2 Toast Modern Styling */
.swal2-toast {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    font-family: 'Prompt', sans-serif !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

.swal2-toast .swal2-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.swal2-toast .swal2-icon {
    margin-right: 12px !important;
}

/* ==========================================================================
   6. Badges & Buttons & Links (with Rich Animations)
   ========================================================================== */
.badge {
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.badge-regis {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: -0.01em;
}

/* Master Button Base with Dynamic Animations */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    padding: 8px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    vertical-align: middle;
}

/* Hover: Lift + Elevation */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.12);
}

/* Active / Click: Tactile Bounce */
.btn:active, .btn.active {
    transform: translateY(1px) scale(0.97) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Button Shimmer / Light Sweep on Hover */
.btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.28) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: none;
    pointer-events: none;
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
    left: 150%;
    transition: all 0.65s ease;
}

/* Specific Glow & Shadow Effects (Classic #30a5ff Sky Blue & Emerald Green) */
.btn-primary {
    background-color: #30a5ff;
    border-color: #30a5ff;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #1b8ce6;
    border-color: #1b8ce6;
    box-shadow: 0 6px 18px rgba(48, 165, 255, 0.35) !important;
}

.btn-success {
    background-color: #00873a;
    border-color: #00873a;
}
.btn-success:hover, .btn-success:focus {
    background-color: #006f1d;
    border-color: #006f1d;
    box-shadow: 0 6px 18px rgba(0, 135, 58, 0.35) !important;
}

.btn-warning {
    background-color: #ffb53e;
    border-color: #ffb53e;
    color: #2c3e50;
}
.btn-warning:hover {
    background-color: #f39c12;
    border-color: #f39c12;
    box-shadow: 0 6px 18px rgba(255, 181, 62, 0.35) !important;
}

.btn-danger {
    background-color: #f9243f;
    border-color: #f9243f;
}
.btn-danger:hover {
    background-color: #e01b35;
    border-color: #e01b35;
    box-shadow: 0 6px 18px rgba(249, 36, 63, 0.35) !important;
}

.btn-info:hover {
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.38) !important;
}

.btn-outline-primary {
    color: #30a5ff;
    border-color: #30a5ff;
}
.btn-outline-primary:hover {
    background-color: #30a5ff;
    border-color: #30a5ff;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(48, 165, 255, 0.28) !important;
}

.btn-outline-warning:hover {
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25) !important;
}

.btn-light:hover {
    background-color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Micro-Interactions on Icons inside Buttons */
.btn i, .btn svg {
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.btn:hover i.fa-arrow-right,
.btn:hover i.fa-chevron-right {
    transform: translateX(3px);
}

.btn:hover i.fa-arrow-left,
.btn:hover i.fa-chevron-left {
    transform: translateX(-3px);
}

.btn:hover i.fa-plus,
.btn:hover i.fa-plus-circle {
    transform: rotate(90deg) scale(1.1);
}

.btn:hover i.fa-eye,
.btn:hover i.fa-magnifying-glass,
.btn:hover i.fa-search {
    transform: scale(1.2);
}

.btn:hover i.fa-cloud-arrow-up,
.btn:hover i.fa-upload {
    transform: translateY(-2px) scale(1.1);
}

.btn:hover i.fa-file-lines,
.btn:hover i.fa-envelope,
.btn:hover i.fa-signature {
    transform: scale(1.15);
}

/* Ripple Wave Effect on Button Click */
.btn-ripple-wave {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: btn-ripple-anim 600ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

@keyframes btn-ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.hover-primary:hover {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

/* ==========================================================================
   7. Split Screen Login (Bright & Eye-Friendly Light Tone)
   ========================================================================== */
.auth-split-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f4f7f9;
    color: #34495e;
    font-family: 'Kanit', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.split-left {
    flex: 1.2;
    position: relative;
    background: url('../../image/bg-auth.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4.5rem;
}

.split-left::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(5, 46, 22, 0.72) 100%);
}

.split-left-content {
    position: relative;
    z-index: 2;
}

.badge-system {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 135, 58, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    margin-bottom: 22px;
    color: #006f1d;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #00873a;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 135, 58, 0.6);
}

.hotel-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.hotel-title span {
    color: #6ee7b7;
}

.hotel-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #f8fafc;
    line-height: 1.6;
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.split-right {
    flex: 1;
    background-color: #f6f9f7;
    background: radial-gradient(circle at 85% 15%, rgba(0, 135, 58, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 15% 85%, rgba(48, 165, 255, 0.08) 0%, transparent 45%),
                linear-gradient(160deg, #fbfdfc 0%, #eff5f2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    border: none;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    z-index: 2;
}

.logo-section {
    text-align: center;
    margin-bottom: 1.75rem;
}

.logo-box {
    width: 78px;
    height: 78px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 1px solid #e2ece6;
    box-shadow: 0 8px 22px rgba(0, 111, 29, 0.08);
    padding: 10px;
}

.logo-title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #006f1d;
}

.logo-subtitle {
    font-size: 0.92rem;
    color: #55687d;
}

/* Light Tone Login Card */
.login-card-light {
    background-color: #ffffff;
    border-radius: 22px;
    padding: 2.4rem;
    border: 1px solid #e2ece6;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
    color: #34495e;
}

.login-header-light {
    margin-bottom: 1.75rem;
}

.login-header-light h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-header-light p {
    color: #6c7a89;
    font-size: 0.88rem;
    margin-bottom: 0;
}

.form-group-custom {
    margin-bottom: 1.25rem;
}

.form-label-custom {
    color: #34495e;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group-custom {
    position: relative;
}

.input-icon-left {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
    font-size: 0.95rem;
}

.input-icon-right {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 10;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.input-icon-right:hover {
    color: #00873a;
}

/* Form Control Light Tone */
.form-control.form-control-custom {
    width: 100%;
    background-color: #f8fafc;
    border: 1.5px solid #dce5ec;
    border-radius: 12px;
    height: 50px;
    padding: 0 2.8rem 0 3rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control.form-control-custom:focus {
    outline: none;
    border-color: #00873a;
    box-shadow: 0 0 0 4px rgba(0, 135, 58, 0.12);
    background-color: #ffffff;
}

.form-control.form-control-custom::placeholder,
.form-control.form-control-custom::-webkit-input-placeholder,
.form-control.form-control-custom::-moz-placeholder,
.form-control.form-control-custom:-ms-input-placeholder {
    color: #94a3b8 !important;
    font-weight: 300 !important;
    opacity: 0.65 !important;
}

.btn-primary-custom {
    width: 100%;
    background: linear-gradient(135deg, #00873a 0%, #006f1d 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    height: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    margin-top: 1rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(0, 135, 58, 0.22);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #009942 0%, #007a21 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 135, 58, 0.3);
    color: #fff;
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.forgot-link {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #00873a;
    text-decoration: none;
}

.footer-text {
    position: absolute;
    bottom: 2rem;
    text-align: center;
    width: 100%;
    left: 0;
    color: #6c7a89;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-text a.dev-link {
    color: #00873a;
    font-weight: 600;
    text-decoration: none;
}

.footer-text a.dev-link:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .split-layout {
        display: block;
        position: relative;
        min-height: 100vh;
    }
    .split-left {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        height: 100%;
        z-index: 0;
        padding: 2rem;
    }
    .split-left-content {
        display: none;
    }
    .split-right {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        background: rgba(248, 251, 249, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: center;
        padding: 2.5rem 1.5rem;
    }
    .login-card-light {
        padding: 2rem 1.5rem;
    }
    .footer-text {
        position: relative;
        bottom: 0;
        margin-top: 2.5rem;
    }
}

/* ==========================================================================
   8. Responsive Layout Breakpoints & Mobile Sidebar Toggle
   ========================================================================== */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.sidebar-open {
    overflow: hidden;
}

#sidebarCloseBtn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    cursor: pointer;
}

#sidebarCloseBtn:hover, #sidebarCloseBtn:active {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4);
}

@media (max-width: 991.98px) {
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        box-shadow: none;
        z-index: 1040;
    }
    #sidebar.show {
        margin-left: 0;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.5);
    }
    #content-wrapper {
        margin-left: 0;
    }
    .main-content {
        padding: 16px;
    }
    .top-navbar {
        padding: 12px 16px;
    }
}

/* ==========================================================================
   9. Minimalist Modern Pagination (Matching User Reference)
   ========================================================================== */
.custom-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
    user-select: none;
}

.custom-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    color: #111827;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
}

/* Active page: light-gray box with subtle outline */
.custom-pagination .page-item.active .page-link {
    background-color: #f4f5f7 !important;
    border-color: #9ca3af !important;
    color: #1f2937 !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

/* Navigation symbols: « ‹ › » */
.custom-pagination .page-item .page-symbol {
    font-size: 1.35rem;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1;
    color: #6b7280;
    display: inline-block;
}

.custom-pagination .page-item:not(.disabled) .page-link:hover .page-symbol {
    color: #111827;
}

.custom-pagination .page-item.disabled .page-link {
    color: #d1d5db !important;
    pointer-events: none;
    background: transparent !important;
    border-color: transparent !important;
}

.custom-pagination .page-item.disabled .page-symbol {
    color: #d1d5db !important;
}
