/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-base: #030303;
    --bg-surface: #0a0a0a;
    --panel-bg: rgba(12, 12, 12, 0.6);
    --border-subtle: rgba(255, 20, 20, 0.15);
    --border-glow: rgba(255, 20, 20, 0.4);
    --primary-red: #ff1111;
    --glow-red: #ff0000;
    --dark-red: #660000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --glass-blur: blur(16px);
    --transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-animation {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(180, 0, 0, 0.25) 0%, transparent 60%);
    z-index: -2;
    animation: pulseBg 10s infinite alternate linear;
    pointer-events: none;
}
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

@keyframes pulseBg {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 0, 0, 0.02);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.3;
}

/* Typography Utility */
.logo-text { font-size: 2.8rem; font-weight: 900; letter-spacing: -1.5px; text-transform: uppercase; }
.red-text { 
    color: var(--primary-red); 
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 40px rgba(255, 0, 0, 0.4); 
}
.subtitle { color: var(--text-muted); font-size: 0.95rem; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; font-weight: 500;}
h2 { font-weight: 700; font-size: 1.8rem; letter-spacing: -0.5px;}
h3 { font-weight: 700; font-size: 1.4rem; }

/* Login Page Layout */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.login-box {
    padding: 4rem 3rem;
    width: 100%;
    max-width: 460px;
    text-align: center;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
}
.logo-area { margin-bottom: 3rem; animation: float 6s ease-in-out infinite; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Form Styles */
.input-group { margin-bottom: 1.8rem; text-align: left; }
.input-group label { 
    display: block; margin-bottom: 0.8rem; color: var(--text-muted); 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; 
}
.input-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
}
.input-group input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.2), inset 0 0 10px rgba(255, 0, 0, 0.1);
    background: #000;
}

/* Buttons */
.btn {
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.primary-btn {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 50, 50, 0.5);
    z-index: 1;
}
.primary-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s; z-index: -1;
}
.primary-btn:hover::before { left: 100%; }
.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
}
.primary-btn:active { transform: translateY(0) scale(0.98); }

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}
.secondary-btn:hover { 
    background: rgba(255, 255, 255, 0.05); 
    border-color: white;
}

/* Alerts */
.alert { padding: 15px; border-radius: 12px; margin-bottom: 25px; font-weight: 600; font-size: 0.95rem; text-align: center;}
.alert.error { background: rgba(255,0,0,0.05); border: 1px solid var(--primary-red); color: var(--primary-red); box-shadow: 0 0 15px rgba(255,0,0,0.2);}

/* Dashboard Wrapper */
.dashboard-wrapper { display: flex; height: 100vh; overflow: hidden; padding: 1.5rem; gap: 1.5rem;}

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 2.5rem 1.5rem;
    display: flex; flex-direction: column;
    height: 100%;
}
.sidebar .logo-area { margin-bottom: 3rem; }
.nav-links { list-style: none; flex: 1; }
.nav-links li { margin-bottom: 0.5rem; }
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    display: flex; align-items: center; padding: 16px 20px; border-radius: 12px;
    transition: var(--transition);
    font-weight: 600; font-size: 1rem;
}
.nav-links li.active a, .nav-links a:hover {
    background: linear-gradient(90deg, rgba(255, 0, 0, 0.1), transparent);
    color: white;
    border-left: 4px solid var(--primary-red);
    box-shadow: inset 20px 0 20px -20px rgba(255,0,0,0.5);
}

.tab-content { display: none; flex-direction: column; gap: 1.5rem; width: 100%; }
.tab-content.active { display: flex; }

/* Main Content */
.content-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; }
.top-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 2.5rem;
}
.top-bar .btn { width: auto; }

/* Stats grid */
.stats-cards { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; 
}
.stat-card { 
    padding: 2rem 2.5rem; 
    display: flex; flex-direction: column; justify-content: center;
}
.stat-title { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; font-weight: 700; letter-spacing: 1.5px;}
.stat-card h3 { font-size: 3rem; color: var(--text-main); margin-top: 0.5rem; font-weight: 300; font-family: 'JetBrains Mono', monospace;}
#statTotal { color: var(--primary-red); text-shadow: 0 0 20px rgba(255,0,0,0.5); }

/* Table area */
.table-container { padding: 1rem 2rem; overflow-x: auto; flex: 1; margin-bottom: 1.5rem;}
.premium-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.premium-table th {
    padding: 20px; text-align: left; 
    color: var(--text-muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 2px;
}
.premium-table td { 
    padding: 20px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
    font-size: 0.95rem;
    vertical-align: middle;
}
.premium-table tr { transition: var(--transition); }
.premium-table tr:hover td { background: rgba(255, 0, 0, 0.03); border-color: rgba(255,0,0,0.1);}

/* Badges */
.badge { padding: 6px 14px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.badge.active { background: rgba(0, 255, 0, 0.05); color: #00ff55; border: 1px solid rgba(0,255,85,0.3); box-shadow: 0 0 10px rgba(0,255,85,0.1); }
.badge.expired { background: rgba(255, 0, 0, 0.05); color: var(--primary-red); border: 1px solid rgba(255,0,0,0.3); box-shadow: 0 0 10px rgba(255,0,0,0.1);}

/* Code blocks (License keys) */
code.license-key {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0,0,0,0.5);
    padding: 6px 10px;
    border-radius: 6px;
    color: #ff4d4d;
    border: 1px solid rgba(255,0,0,0.2);
    font-size: 0.9rem;
}

/* Icon actions */
.action-btn { 
    background: transparent; 
    border: 1px solid rgba(255,255,255,0.1); 
    color: var(--text-muted); 
    cursor: pointer; 
    width: 36px; height: 36px; border-radius: 8px;
    display: inline-flex; justify-content: center; align-items: center;
    transition: var(--transition); margin-right: 8px;
}
.action-btn:hover { background: rgba(255,255,255,0.1); color: white; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.5);}
.action-btn.delete:hover { background: rgba(255,0,0,0.1); border-color: var(--primary-red); color: var(--primary-red); box-shadow: 0 5px 15px rgba(255,0,0,0.2);}
.action-btn svg { width: 18px; height: 18px; }

/* Entry Animations */
.entry-anim { animation: elegantFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes elegantFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Styling */
.hidden { display: none !important; opacity: 0; pointer-events: none;}
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.9); z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s forwards;
}
.modal-content {
    padding: 3rem; width: 100%; max-width: 500px;
    animation: popIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 50px rgba(255,0,0,0.15), inset 0 0 20px rgba(255,0,0,0.05);
    border-radius: 20px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn {
    0% { transform: scale(0.9) translateY(20px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-content h2 { margin-bottom: 2.5rem; text-align: center; color: white; }
.modal-actions { display: flex; gap: 15px; margin-top: 2.5rem; }

/* Toast Messages */
.toast-container { position: fixed; bottom: 40px; right: 40px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast {
    background: rgba(10,10,10,0.9); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--primary-red);
    padding: 20px 25px; border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: white; font-weight: 600; font-size: 0.95rem;
    display: flex; align-items: center; gap: 12px;
}
.toast-icon { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,0,0,0.1); }
.toast.success { border-left-color: #00ff55; }
.toast.success .toast-icon { color: #00ff55; background: rgba(0,255,85,0.1);}
.toast.error .toast-icon { color: var(--primary-red); background: rgba(255,0,0,0.1);}

@keyframes slideInRight {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,0,0,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,0,0,0.6); }

/* Log Event Badges */
.badge-log {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
}
.badge-log.success {
    background: rgba(0, 255, 120, 0.06);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 120, 0.25);
    box-shadow: 0 0 10px rgba(0, 255, 120, 0.1);
}
.badge-log.info {
    background: rgba(0, 160, 255, 0.06);
    color: #00aaff;
    border: 1px solid rgba(0, 160, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 160, 255, 0.1);
}
.badge-log.warning {
    background: rgba(255, 170, 0, 0.06);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.25);
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.1);
}
.badge-log.danger {
    background: rgba(255, 30, 30, 0.06);
    color: #ff3333;
    border: 1px solid rgba(255, 30, 30, 0.25);
    box-shadow: 0 0 10px rgba(255, 30, 30, 0.1);
}

/* Date Input styling override */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(330deg);
    cursor: pointer;
}

/* Responsive / Mobile Design Queries */
@media screen and (max-width: 1024px) {
    .dashboard-wrapper {
        flex-direction: column !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 0.8rem !important;
        gap: 0.8rem !important;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        padding: 1.2rem 1rem !important;
        margin-bottom: 0 !important;
    }

    .sidebar .logo-area {
        margin-bottom: 1.2rem !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .sidebar .logo-area h2 {
        font-size: 1.8rem !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        scrollbar-width: none !important; /* Hide scrollbar on Firefox */
    }

    .nav-links::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar on Chrome/Safari */
    }

    .nav-links li {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }

    .nav-links a {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    .nav-links li.active a, .nav-links a:hover {
        border-left: none !important;
        border-bottom: 3px solid var(--primary-red) !important;
        box-shadow: inset 0 -10px 10px -10px rgba(255,0,0,0.5) !important;
    }

    .content-area {
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .top-bar {
        padding: 1.2rem;
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }

    .top-bar .btn {
        width: 100%;
    }

    .top-bar .search-box {
        max-width: 100% !important;
        width: 100%;
    }
    
    .top-bar div[style*="justify-content: flex-end"], 
    .top-bar div[style*="display: flex; flex-wrap: wrap"] {
        justify-content: stretch !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 12px !important;
    }
    
    .top-bar select, .top-bar input[type="date"], .top-bar div[style*="display: flex; align-items: center; gap: 5px;"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .top-bar div[style*="display: flex; align-items: center; gap: 5px;"] {
        justify-content: space-between;
    }

    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .table-container {
        padding: 0.6rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .premium-table {
        width: 100%;
        min-width: 900px; /* Force table horizontal scrolling on portrait screen */
    }

    .premium-table th, .premium-table td {
        padding: 12px 10px;
        font-size: 0.82rem;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-card h3 {
        font-size: 2.2rem;
    }

    .modal-content {
        padding: 2rem 1.2rem;
        width: 95%;
        max-width: 440px;
    }
}

/* Hama FiveM liquid-glass theme */
:root {
    --bg-base: #f4f6f9;
    --bg-surface: rgba(255, 255, 255, 0.72);
    --panel-bg: rgba(255, 255, 255, 0.62);
    --border-subtle: rgba(255, 255, 255, 0.92);
    --border-glow: rgba(30, 36, 48, 0.12);
    --primary-red: #17191f;
    --glow-red: #17191f;
    --dark-red: #30343b;
    --text-main: #17191f;
    --text-muted: #737985;
    --glass-blur: blur(22px);
}

body {
    color: #17191f;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(218, 227, 242, 0.76), transparent 34rem),
        radial-gradient(ellipse at 88% 72%, rgba(235, 228, 220, 0.58), transparent 32rem),
        #f4f6f9;
}

.bg-animation {
    background: radial-gradient(circle, rgba(216, 225, 240, 0.6) 0%, transparent 65%);
    opacity: 0.6;
}

.bg-grid {
    background-image:
        linear-gradient(rgba(40, 48, 64, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 48, 64, 0.025) 1px, transparent 1px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 52px rgba(34, 43, 61, 0.08), inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
}

.glass-panel::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96), transparent);
    opacity: 0.8;
}

.logo-text {
    color: #17191f;
    letter-spacing: -1.8px;
    text-transform: none;
}

.red-text {
    margin-left: 8px;
    color: #575d68;
    text-shadow: none;
}

.subtitle {
    color: #707681;
}

h2,
h3 {
    color: #17191f;
}

.login-container {
    min-height: 100vh;
    height: auto;
}

.login-box {
    border-radius: 26px;
}

.input-group label {
    color: #626875;
}

.input-group input,
.search-box input,
input[type="date"],
select {
    color: #20232a !important;
    background: rgba(244, 246, 249, 0.88) !important;
    border: 1px solid rgba(28, 35, 47, 0.12) !important;
    border-radius: 11px !important;
}

.input-group input:focus,
.search-box input:focus,
input[type="date"]:focus,
select:focus {
    background: #fff !important;
    border-color: rgba(30, 36, 48, 0.38) !important;
    box-shadow: 0 0 0 4px rgba(30, 36, 48, 0.07) !important;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(145deg, #30343b, #121419);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 9px 24px rgba(20, 24, 32, 0.16);
}

.primary-btn:hover {
    box-shadow: 0 12px 28px rgba(20, 24, 32, 0.2);
}

.secondary-btn {
    color: #20232a;
    border-color: rgba(30, 36, 48, 0.18);
}

.secondary-btn:hover {
    color: #111318;
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(30, 36, 48, 0.28);
}

.alert.error {
    color: #913636;
    background: rgba(176, 58, 58, 0.07);
    border-color: rgba(176, 58, 58, 0.24);
    box-shadow: none;
}

.sidebar {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(34, 43, 61, 0.07), inset 0 1px 0 #fff;
}

.nav-links a {
    color: #626875;
}

.nav-links li.active a,
.nav-links a:hover {
    color: #17191f;
    background: rgba(226, 230, 237, 0.68);
    border-left-color: #17191f;
    box-shadow: inset 20px 0 20px -20px rgba(23, 25, 31, 0.16);
}

.top-bar {
    border-radius: 20px;
}

.top-bar .subtitle {
    letter-spacing: 0.2px;
    text-transform: none;
}

.stat-card {
    border-radius: 20px;
}

.stat-title {
    color: #747a86;
}

.stat-card h3,
#statTotal {
    color: #17191f;
    text-shadow: none;
}

.table-container {
    border-radius: 20px;
}

.premium-table th {
    color: #6d7380;
    border-bottom-color: rgba(28, 35, 47, 0.1);
}

.premium-table td {
    color: #343943;
    border-bottom-color: rgba(28, 35, 47, 0.07);
}

.premium-table tr:hover td {
    background: rgba(232, 235, 241, 0.5);
    border-color: rgba(28, 35, 47, 0.08);
}

.badge.active {
    color: #26734b;
    background: rgba(38, 115, 75, 0.08);
    border-color: rgba(38, 115, 75, 0.2);
    box-shadow: none;
}

.badge.expired {
    color: #913636;
    background: rgba(176, 58, 58, 0.07);
    border-color: rgba(176, 58, 58, 0.2);
    box-shadow: none;
}

code.license-key {
    color: #30343b;
    background: rgba(239, 241, 245, 0.88);
    border-color: rgba(30, 36, 48, 0.1);
}

.action-btn {
    color: #626875;
    border-color: rgba(30, 36, 48, 0.12);
}

.action-btn:hover {
    color: #17191f;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 15px rgba(30, 36, 48, 0.1);
}

.action-btn.delete:hover {
    color: #913636;
    background: rgba(176, 58, 58, 0.07);
    border-color: rgba(176, 58, 58, 0.24);
    box-shadow: 0 5px 15px rgba(176, 58, 58, 0.08);
}

.modal-overlay {
    background: rgba(24, 29, 38, 0.22);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
}

.modal-content {
    border-color: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(27, 35, 50, 0.2), inset 0 1px 0 #fff;
}

.modal-content h2 {
    color: #17191f;
}

.toast {
    color: #20232a;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-left: 4px solid #17191f;
    box-shadow: 0 16px 42px rgba(34, 43, 61, 0.14);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.toast-icon,
.toast.error .toast-icon {
    color: #505662;
    background: rgba(30, 36, 48, 0.08);
}

.toast.success {
    border-left-color: #32835a;
}

.toast.success .toast-icon {
    color: #26734b;
    background: rgba(38, 115, 75, 0.08);
}

::-webkit-scrollbar-thumb {
    background: rgba(40, 46, 58, 0.28);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(40, 46, 58, 0.42);
}

.badge-log.success,
.badge-log.info,
.badge-log.warning,
.badge-log.danger {
    box-shadow: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
    transition: opacity 600ms ease var(--reveal-delay, 0ms), transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.scroll-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {
    .nav-links li.active a,
    .nav-links a:hover {
        border-bottom-color: #17191f !important;
        box-shadow: inset 0 -10px 10px -10px rgba(23, 25, 31, 0.16) !important;
    }

    .dashboard-wrapper {
        background: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

