:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.5);
    --bg-dark: #020617;
    --glass: rgba(15, 23, 42, 0.65);
    --border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Outfit', 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: #f8fafc;
    margin: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.08), transparent 25%);
}

/* Sidebar styling */
.sidebar {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    transition: all 0.3s ease;
}

.sidebar-item {
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.sidebar-item:hover, .sidebar-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
    border-left-color: var(--primary);
    color: white;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Add a subtle top highlight to glass cards */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0.5;
}

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover::after {
    animation: shimmer 1.5s infinite;
    opacity: 1;
}

.input-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    color: white;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.input-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Terminal Styling */
#audit-terminal {
    background: rgba(0,0,0,0.5);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
#audit-terminal p {
    text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 100%;
    width: 100%;
    min-height: 250px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.animate-fade {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.pulse-glow {
    animation: pulseGlow 2s infinite;
}
