/* core_modern.css - Executive Midnight Edition v2.0 */

:root {
    /* Obsidian & Nickel Palette */
    --brand-primary: #0891b2; /* Cyan 600 */
    --brand-accent: #06b6d4;  /* Cyan 500 */
    --brand-dark: #020617;
    --brand-deep: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0891b2;
    
    /* Neutral Palette */
    --ink: #f8fafc;
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(15, 23, 42, 0.8);
    --body-bg: #020617;
    
    /* Layout */
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: 'Inter', 'Outfit', sans-serif;
    background: var(--body-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Components */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Layout Structures */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    color: white;
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 3rem;
}

@media (max-width: 992px) {
    .sidebar { width: 0; display: none; }
    .main-content { margin-left: 0; padding: 1.5rem; }
}

/* Branding */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 3.5rem;
    text-decoration: none;
    color: white;
    letter-spacing: -0.5px;
}

.brand-logo img {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(4px);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(8, 145, 178, 0.05));
    border: 1px solid rgba(8, 145, 178, 0.3);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(8, 145, 178, 0.1);
}

.nav-link svg {
    transition: transform 0.3s;
}

.nav-link:hover svg {
    transform: scale(1.1);
}

/* Premium Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: border-color 0.3s, transform 0.3s;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.9375rem;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: scale(1.02);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: transparent;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

/* Stats */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, transparent, rgba(59, 130, 246, 0.05));
    border-radius: 0 0 0 100%;
}

.stat-value {
    font-size: 2.25rem;
    letter-spacing: -0.05em;
    font-weight: 900;
    color: white;
    margin-top: 0.5rem;
}

/* Forms - Executive Style */
.form-group {
    margin-bottom: 2rem;
}

input[type="text"], input[type="email"], input[type="password"], select, textarea {
    background: rgba(2, 6, 23, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(2, 6, 23, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

input::placeholder {
    color: #475569;
}

/* Auth Center Overhaul */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020617;
    position: relative;
    padding: 2rem;
}

.auth-blob {
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

/* Transitions */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb { 
    background: #1e293b; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #334155; }
