:root {
    --primary-blue: #0f172a;
    --secondary-blue: #1e293b;
    --accent-violet: #8b5cf6;
    --accent-blue: #3b82f6;
    --gradient-premium: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --bg-dark: #020617;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0, transparent 50%);
    background-attachment: fixed;
    text-transform: uppercase;
}

.normal-case {
    text-transform: none;
}

header {
    background: #020617;
    /* Solid very dark for maximum logo pop */
    backdrop-filter: blur(12px) saturate(180%);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-violet);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.logo-large {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.logo-large:hover {
    transform: scale(1.05);
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

nav.sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    nav.sidebar {
        width: 80px;
        min-width: 80px;
    }

    .nav-link span,
    .nav-group-label,
    .sidebar .logo-text {
        display: none;
    }

    main.content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    nav.sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    header {
        padding: 0.75rem 1rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transform: translateX(8px);
}

.nav-link.active {
    background: var(--gradient-premium);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

main.content {
    padding: 2.5rem;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Forms */
input,
select,
textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

button.btn-primary {
    background: var(--gradient-premium);
    color: white;
    border: none;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

th {
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.925rem;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.search-dropdown {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    margin-top: 5px;
    background: #0f172a;
}