/* Premium Dark Theme Stylesheet for QuantIDX V2 Dashboard */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0a0d16;
    --bg-card: #141a29;
    --glass-bg: rgba(20, 26, 41, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    
    --text-primary: #ffffff;
    --text-secondary: #8c9ba5;
    
    --color-cyan: #06b6d4;
    --color-emerald: #10b981;
    --color-sunset: #f97316;
    --color-gold: #fbbf24;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    --sidebar-width: 250px;
    --transition-speed: 0.25s;
    --font-mono: 'Menlo', 'Monaco', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    white-space: nowrap;
}

/* Login Page specific */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #05070a 0%, #0a0d16 100%);
    position: relative;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 25%);
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    z-index: 1;
    padding: 20px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-emerald));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--bg-main);
    margin: 0 auto 16px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #88a2b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(6, 182, 212, 0.05);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--color-cyan), var(--color-emerald));
    color: var(--bg-main);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-1px);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}

.alert-error {
    background: rgba(249, 115, 22, 0.15);
    color: var(--color-sunset);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .layout-row {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
    
    .glass-card {
        padding: 16px;
    }
    
    .page-title {
        font-size: 24px !important;
    }
}
