/* Admin Panel Premium Styles - 2026 Redesign */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
    /* Ultra Modern Palette */
    --primary-red: #be123c;
    --primary-dark: #881337;
    --primary-blue: #2563eb;
    --primary-slate: #0f172a;
    --accent-gold: #f59e0b;

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;

    --sidebar-width: 280px;
    --header-height: 80px;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Tahoma', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-slate);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-header img {
    height: 40px !important;
    width: auto;
    max-width: 50px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.sidebar-title {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.5px;
    background: linear-gradient(45deg, #FFD700, #FFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.nav-links::-webkit-scrollbar {
    width: 6px;
}

.nav-links::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.menu-item {
    padding: 14px 20px;
    margin: 8px 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 600;
    border-radius: 12px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(190, 18, 60, 0.4);
}

.menu-item i {
    width: 25px;
    text-align: center;
    margin-right: 15px;
    font-size: 18px;
    opacity: 0.9;
}

.nav-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 25px;
}

.nav-links li a {
    padding: 14px 25px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    transition: 0.2s;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.nav-links li a:hover {
    color: white;
}

.nav-links li a i {
    width: 25px;
    margin-right: 15px;
    text-align: center;
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    background-color: var(--bg-body);
    transition: all 0.3s ease;
    min-width: 0;
}

/* HEADER TOP BAR */
header {
    background: var(--bg-white);
    padding: 0 30px;
    height: var(--header-height);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

header h2 {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 800;
}

.user-info,
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

#admin-welcome {
    font-weight: 600;
    color: var(--text-secondary);
}

.header-right img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.header-right img:hover {
    transform: scale(1.05);
}

.btn-toggle-sidebar {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    margin-right: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-sidebar:hover {
    background: #f0f0f0;
    color: var(--primary-red);
}

/* --- STAT CARDS --- */
.stat-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    z-index: 0;
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
}

.stat-info {
    z-index: 1;
    width: 100%;
}

.stat-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: white;
}

/* --- CONTENT CARDS --- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 20px;
    color: var(--text-primary);
    border-left: 5px solid var(--primary-red);
    padding-left: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* --- BUTTONS --- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
}

.btn-secondary {
    background: #ECEFF1;
    color: var(--text-secondary);
    border: 1px solid #CFD8DC;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #CFD8DC;
    box-shadow: none;
}

/* --- TABLES --- */
/* --- MODERN TABLES 2026 --- */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spaced rows */
    margin-top: -8px;
}

.data-table th {
    background-color: transparent !important;
    padding: 15px 20px;
    text-align: left;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    border: none !important;
}

.data-table td {
    padding: 20px;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    vertical-align: middle;
    font-weight: 600;
    transition: all 0.2s;
}

.data-table td:first-child {
    border-left: 1px solid #f1f5f9;
    border-radius: 12px 0 0 12px;
}

.data-table td:last-child {
    border-right: 1px solid #f1f5f9;
    border-radius: 0 12px 12px 0;
}

.data-table tr:hover td {
    background-color: #f8fafc;
    border-color: var(--primary-red);
    transform: scale(1.002);
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

.badge-warning {
    background: #fef9c3;
    color: #a16207;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background: #E3F2FD;
    color: #1565C0;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CFD8DC;
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
    background: #FAFAFA;
}

.form-control:focus {
    border-color: var(--primary-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}

label {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

/* --- EDITOR --- */
.sticky-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: -30px -30px 20px -30px;
}

.editor-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.editor-main {
    flex: 3;
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    min-height: 800px;
    border: 1px solid #E0E0E0;
}

.editor-sidebar {
    flex: 1;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 5px;
}

.editor-sidebar::-webkit-scrollbar {
    width: 5px;
}

.editor-sidebar::-webkit-scrollbar-thumb {
    background: #CFD8DC;
    border-radius: 4px;
}

.editor-sidebar .sidebar-section {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #EEEEEE;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid #F5F5F5;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-title {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Tahoma', sans-serif;
    color: var(--text-primary);
    border: none;
    border-bottom: 1px solid transparent;
    padding: 10px 0;
    width: 100%;
    outline: none;
    transition: all 0.3s;
    background: transparent;
    line-height: 1.3;
}

.input-title:placeholder-shown {
    border-bottom: 1px dashed #DDD;
}

.input-title:focus {
    border-bottom: 1px solid var(--primary-blue);
}

.input-title::placeholder {
    color: #CFD8DC;
    font-weight: 300;
}

#art-img-preview {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 15px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#art-img-preview[src=""] {
    display: none;
}

.tox-tinymce {
    border-radius: 8px !important;
    border: 1px solid #E0E0E0 !important;
}

#art-summary {
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    color: #455A64;
    font-style: italic;
    resize: vertical;
    transition: 0.3s;
}

#art-summary:focus {
    background: white;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.05);
}

.editor-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #EEEEEE;
}

.tab-item {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-item:hover {
    color: var(--primary-blue);
    background: #F5F9FF;
    border-radius: 8px 8px 0 0;
}

.tab-item.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
    font-weight: 700;
}

/* --- PREMIUM TOASTS (Light & Animated 2026) --- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.toast {
    background: #ffffff;
    /* Clean White */
    min-width: 320px;
    max-width: 400px;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(120%);
    /* Start off-screen */
    animation: slideInToast 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    pointer-events: auto;
    color: #333;
    font-family: 'Tahoma', sans-serif;
    position: relative;
    overflow: visible;
}

/* Border Accent (Left) */
.toast.success {
    border-left: 6px solid #4CAF50;
}

.toast.error {
    border-left: 6px solid #FF5252;
}

.toast.warning {
    border-left: 6px solid #FFC107;
}

.toast.info {
    border-left: 6px solid #2196F3;
}

@keyframes slideInToast {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }

    60% {
        transform: translateX(-15px);
        opacity: 1;
    }

    /* Bounce effect */
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideOutToast 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* --- ANIMATED CHECKMARK (Success) --- */
.checkmark-container {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark-svg {
    width: 28px;
    height: 28px;
    stroke-width: 3;
    stroke: #4CAF50;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: scaleCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-circle {
    opacity: 0;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: #4CAF50;
    stroke-width: 2;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    opacity: 0;
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes scaleCheck {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Standard Icons for other types */
.toast-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.error .toast-icon {
    color: #FF5252;
}

.toast.warning .toast-icon {
    color: #FFC107;
}

.toast.info .toast-icon {
    color: #2196F3;
}

.toast-content {
    /* Ensure content flex grow */
    flex: 1;
}

.toast-content p {
    margin: 0;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
}

/* Close Button Removed from logic but keep class just in case */
.toast-close {
    display: none;
}

/* Remove previous Tab View from this block */


.tab-view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 70px;
        z-index: 10001;
    }

    .sidebar .sidebar-title,
    .sidebar .menu-item span,
    .sidebar .sidebar-header img {
        display: none;
    }

    .sidebar .sidebar-header {
        justify-content: center;
        padding: 0;
    }

    .menu-item {
        padding: 15px 0;
        justify-content: center;
    }

    .menu-item i {
        margin: 0;
        font-size: 24px;
    }

    .main-content {
        margin-left: 70px;
    }
}

/* --- PREMIUM LOGIN OVERLAY (Last Style) --- */
/* --- PREMIUM LOGIN OVERLAY (Split Screen 2026) --- */
#login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    /* White background for the form side */
    z-index: 99999;
    /* VISIBLE BY DEFAULT (LOADING STATE) */
    display: flex;
    /* Flex row for split screen */
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    overflow: hidden;
}

#login-overlay *:not(i) {
    font-family: 'Tahoma', 'Segoe UI', sans-serif !important;
}

/* LEFT SIDE: IMAGE */
#login-overlay::before {
    content: "";
    position: relative;
    /* Changed from absolute to be part of flex flow */
    width: 60%;
    /* Occupy 60% of width */
    height: 100%;
    /* Use the requested Hanoi Autumn Image */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4)), url('https://media-cdn-v2.laodong.vn/storage/newsportal/2023/11/9/1265053/Ha-Noi-Mua-La-Rung-7.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    /* Optional: rounded corners on the right side of image */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

/* RIGHT SIDE: FORM CONTAINER */
.login-container {
    flex: 1;
    /* Take remaining space (40%) */
    /* HIDDEN INITIALLY - SHOWN VIA JS IF NOT LOGGED IN */
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    background: white;
    z-index: 2;
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* The inner card is now just a wrapper, no glass effect needed */
.login-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    color: #333;
    /* Dark text for white background */
    width: 100%;
    max-width: 400px;
}

/* Remove shine effect */
.login-glass::after,
.login-glass::before {
    display: none;
}

.login-header img {
    width: 100px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.login-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary-red);
    text-transform: uppercase;
}

.login-header p {
    margin: 8px 0 40px 0;
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #90A4AE;
    font-size: 18px;
    transition: 0.3s;
    z-index: 10;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: #F4F6F9;
    /* Very light grey */
    border: 2px solid #E0E0E0;
    /* Subtle border */
    border-radius: 8px;
    /* Slightly squarer corners for professional look */
    color: #2C3E50;
    font-size: 15px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: #B0BEC5;
    font-weight: 400;
}

.input-group input:focus {
    background: #fff;
    border-color: #B71C1C;
    /* Highlight with Red */
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1);
}

.input-group input:focus+i {
    color: #B71C1C;
}

.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    /* Red Gradient for Authority/Strength */
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.4);
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.login-alert {
    min-height: 24px;
    margin-top: 20px;
    font-size: 14px;
    color: #D32F2F;
    font-weight: 500;
}

.login-footer {
    margin-top: 40px;
    border-top: 1px solid #EEEEEE;
    padding-top: 20px;
    font-size: 12px;
    color: #90A4AE;
    width: 100%;
    text-align: center;
}

/* Responsive adjustment for Mobile */
@media (max-width: 900px) {
    #login-overlay {
        flex-direction: column;
    }

    #login-overlay::before {
        width: 100%;
        height: 35vh;
        /* Top Image */
        clip-path: none;
    }

    .login-container {
        height: 65vh;
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        /* Slight overlap */
        padding: 30px;
    }
}

/* End of Split Style */

/* --- MODAL OVERLAY (Added for Fund/Popups) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

.modal-box {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9);
    animation: popInModal 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes popInModal {
    to {
        transform: scale(1);
    }
}

/* Ensure glass effect inside modal if used */
.modal-box .login-glass {
    padding: 0;
    text-align: left;
    width: 100%;
}

/* Highlight Fresh Row */
.fresh-row {
    animation: flashInfo 3s ease-out;
}

@keyframes flashInfo {
    0% {
        background-color: #fef08a;
    }

    100% {
        background-color: transparent;
    }
}

/* --- MODAL STYLES (Added for User Management) --- */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Groups in Modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.form-group .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    background: #f8fafc;
}

.form-group .form-control:focus {
    border-color: var(--primary-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Status Pill Styles (Repeated here if missing or for consistency) */
.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-active {
    background-color: #dcfce7;
    color: #166534;
}

.status-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-warning {
    background-color: #ffedd5;
    color: #9a3412;
}

/* --- TABLE STYLES --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 13px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table thead th {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.data-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badge in table */
.badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-info {
    background: #e0f2fe;
    color: #0284c7;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #ffedd5;
    color: #c2410c;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* --- PAGINATION STYLES --- */
.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.btn-pagination {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

.btn-pagination:hover:not(:disabled) {
    background: #e2e8f0;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}

.page-info {
    font-size: 14px;
    color: #64748b;
}

.page-info b {
    color: var(--primary-red);
}

/* --- RESPONSIVE ENHANCEMENTS --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

@media (max-width: 992px) {
    .actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-group {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    header {
        padding: 0 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 24px;
    }
}