:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #141416;
    --bg-tertiary: #1e1e21;
    --accent-primary: #7c3aed;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #7c3aed, #ec4899);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --input-color: white;
    --scrollbar-thumb: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f3f5;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --input-color: #212529;
    --scrollbar-thumb: rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

* {
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    padding-top: 80px;
    /* Space for fixed navbar */
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 10px;
}

.text-accent {
    color: var(--accent-primary);
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-box {
    max-width: 450px;
    text-align: center;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 15px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    color: var(--input-color);
    margin-bottom: 20px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

button {
    width: 100%;
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    padding: 16px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    width: 100%;
}

@media (max-width: 850px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    body {
        align-items: flex-start;
        padding-top: 40px;
    }
}

.nav-tabs {
    display: flex;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 0 0 20px 20px;
    width: fit-content;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    border: 1px solid var(--glass-border);
    border-top: none;
    box-shadow: var(--shadow-premium);
}

.tab-btn {
    background: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    width: auto;
    text-transform: none;
    opacity: 0.8;
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    opacity: 1;
    border: 1px solid var(--glass-border);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.status-badge:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--glass-border);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar input {
    width: auto;
    margin-bottom: 0;
    padding: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}