@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #050505;
    --surface-1: rgba(255, 255, 255, 0.02);
    --surface-2: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-1: #2563eb;
    --accent-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-size: 14px; /* Reduced from large default */
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.25rem; color: #fff; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
h4 { font-size: 0.9rem; font-weight: 500; }
p { color: var(--text-secondary); font-size: 0.9rem; }

/* Animated Mesh Background */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-image: 
        radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    filter: blur(60px);
}

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.center-vh { display: flex; justify-content: center; align-items: center; min-height: 100vh; }

/* Buttons */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px; /* Sleeker radius */
    font-size: 0.9rem; font-weight: 500;
    color: #fff;
    background: var(--accent-1);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem; font-weight: 500;
    color: var(--text-primary);
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-secondary:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.2); }

/* Form Elements */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.required { color: var(--danger); }

input[type="text"], input[type="number"], input[type="date"], select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.checkbox-group {
    display: flex; align-items: center; gap: 0.75rem;
    background: var(--surface-1);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.9rem;
}
.checkbox-group input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-1); }

/* Glass Cards (Panels) */
.glass-card {
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Reduced from 24px/32px */
    padding: 1.5rem 2rem; /* Reduced padding */
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Dashboard Specific Layout */
.app-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { 
    background: rgba(10, 10, 10, 0.8); 
    border-right: 1px solid var(--border-color); 
    padding: 1.5rem; 
    display: flex; flex-direction: column; 
}
.main-content { padding: 2.5rem 3rem; max-height: 100vh; overflow-y: auto; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    transform: translateY(15px);
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
