/* ==========================================================================
   AOVCENTER.VN - SLEEK CYBER TECH DARK THEME
   100% SVG Vector Icons - Responsive Mobile & Desktop
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #060913;
    --bg-surface: #0b1120;
    --bg-card: #0f172a;
    --bg-card-hover: #131e36;
    --bg-input: #090e1a;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #3b82f6;

    --text-high: #f8fafc;
    --text-mid: #94a3b8;
    --text-dim: #64748b;

    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    --sidebar-width: 264px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-high);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    margin: 0;
    line-height: 1.5;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.05) 0%, transparent 35%);
    background-attachment: fixed;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace !important;
}

.fw-extrabold {
    font-weight: 800 !important;
}

.text-mid {
    color: var(--text-mid) !important;
}

.text-dim {
    color: var(--text-dim) !important;
}

.text-cyan {
    color: #38bdf8 !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Layout Wrapper & Sidebar */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #080d19;
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-base);
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.85);
    }
    .app-sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1035;
        backdrop-filter: blur(4px);
    }
    .sidebar-overlay.show {
        display: block;
    }
}

.sidebar-brand {
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    flex-shrink: 0;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    line-height: 1.2;
}

.brand-desc {
    font-size: 0.68rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.75rem;
}

.nav-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 0.6rem 0.65rem 0.3rem 0.65rem;
    margin-top: 0.4rem;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.58rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.18s ease;
    margin-bottom: 0.22rem;
}

.nav-item-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-item-link.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.14);
    border-left: 2px solid var(--accent-blue);
}

.nav-badge {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
}

.nav-badge.bg-success {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.4);
}

.nav-badge.bg-danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.nav-badge.bg-primary {
    background: #2563eb !important;
    color: #ffffff !important;
}

.nav-badge.bg-warning {
    background: #d97706 !important;
    color: #ffffff !important;
}

/* Topbar */
.app-topbar {
    height: 60px;
    background: rgba(11, 17, 32, 0.82);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(14px);
}

.topbar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0;
}

.wallet-pill {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wallet-pill:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.45);
}

.wallet-pill-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fbbf24;
    font-family: 'JetBrains Mono', monospace;
}

/* Cards */
.cyber-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s ease;
}

.cyber-card:hover {
    border-color: rgba(255, 255, 255, 0.13);
}

.cyber-card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cyber-card-body {
    padding: 1.25rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Tables */
.cyber-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-high);
    border-collapse: separate;
    border-spacing: 0;
}

.cyber-table th {
    background-color: #090e1a;
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.cyber-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.84rem;
    vertical-align: middle;
}

.cyber-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

.stat-box-skin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 8px;
    background: rgba(244, 63, 94, 0.2);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.5);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-box-noskin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 8px;
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.stat-box-failed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 8px;
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    white-space: nowrap !important;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.16) !important;
    color: #fde047 !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
}

.badge-running {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
}

.badge-completed {
    background: rgba(16, 185, 129, 0.16) !important;
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
}

.badge-failed {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.45) !important;
}

.badge-skin-vip {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(168, 85, 247, 0.25)) !important;
    color: #fecdd3 !important;
    border: 1px solid rgba(244, 63, 94, 0.6) !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.25);
}

/* Inputs & Buttons */
.cyber-input, .cyber-select {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 0.62rem 0.92rem;
    font-size: 0.88rem;
    transition: all 0.2s ease;
}

.cyber-input:focus, .cyber-select:focus {
    background-color: #070c17 !important;
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
    outline: none;
    color: #fff !important;
}

.cyber-input::placeholder {
    color: var(--text-dim) !important;
}

.btn-cyber-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.55rem 1.15rem;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

.btn-cyber-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-cyber-dark {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-mid);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.btn-cyber-dark:hover {
    background-color: rgba(255, 255, 255, 0.09);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

/* Smooth Progress Bars */
.progress {
    height: 10px !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.progress-bar, .live-prog-bar {
    border-radius: 9999px !important;
    background-image: none !important;
    transition: width 0.4s ease, background-color 0.3s ease !important;
}

.progress-bar.bg-success {
    background-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.45) !important;
}

.progress-bar.bg-primary {
    background-color: #3b82f6 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.45) !important;
}

.modal-content.cyber-modal {
    background-color: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

