/* Genesis Matrix Complete Luxury Dashboard */
/* Advanced Glassmorphism & Metallic Effects */

:root {
    /* Dark luxury base colors */
    --primary-black: #0a0a0a;
    --secondary-black: #1a1a1a;
    --tertiary-black: #2a2a2a;
    --quaternary-black: #3a3a3a;
    
    /* Gold & Metallic colors - enhanced */
    --primary-gold: #FFD700;
    --secondary-gold: #FFA500;
    --accent-gold: #FFC107;
    --dark-gold: #B8860B;
    --light-gold: #FFF8DC;
    --platinum: #E5E4E2;
    --silver: #C0C0C0;
    --bronze: #CD7F32;
    
    /* Metallic gradients */
    --metallic-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    --metallic-silver: linear-gradient(135deg, #C0C0C0 0%, #E5E4E2 50%, #C0C0C0 100%);
    --metallic-platinum: linear-gradient(135deg, #E5E4E2 0%, #FFFFFF 50%, #E5E4E2 100%);
    
    /* Glass effects - enhanced */
    --glass-bg: rgba(255, 215, 0, 0.08);
    --glass-bg-dark: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 215, 0, 0.3);
    --glass-border-bright: rgba(255, 215, 0, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.1);
    --glass-shadow-intense: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.15);
    --glass-blur: blur(20px);
    --glass-blur-heavy: blur(30px);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --text-gold: #FFD700;
    
    /* Status colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Priority colors */
    --priority-high: #ef4444;
    --priority-medium: #f59e0b;
    --priority-low: #3b82f6;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 50%, var(--tertiary-black) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Main Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== SIDEBAR - Glassmorphism ===== */
.sidebar {
    width: 280px;
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.glass-sidebar {
    background: linear-gradient(180deg, 
        rgba(26, 26, 26, 0.8) 0%, 
        rgba(26, 26, 26, 0.6) 100%);
}

/* Logo Section */
.logo-section {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.05) 0%, transparent 100%);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-emblem {
    width: 50px;
    height: 50px;
    background: var(--metallic-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.metallic-glow {
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.logo-emblem::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 3s infinite;
}

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

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.brand-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* User Profile */
.user-profile {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin: 0 1rem;
    border-radius: 12px;
}

.glass-card {
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--glass-shadow-intense);
    border-color: var(--glass-border-bright);
    transform: translateY(-2px);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--metallic-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    font-size: 1.25rem;
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
}

.metallic {
    background: var(--metallic-gold);
    position: relative;
    overflow: hidden;
}

.metallic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: metallicShine 2s infinite;
}

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

/* Navigation */
.main-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
}

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

.glass-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
    backdrop-filter: blur(10px);
    border-left: 3px solid transparent;
}

.nav-item.active .glass-nav-item {
    background: var(--glass-bg);
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.glass-nav-item:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
    border-left-color: var(--glass-border);
}

.glass-nav-item i {
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.metallic-icon {
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* System Status */
.system-status {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1rem;
    border-radius: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-glow {
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success), 0 0 20px var(--success), 0 0 30px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.status-indicator.online {
    background: var(--success);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    background: transparent;
    position: relative;
}

.glass-header {
    background: var(--glass-bg-dark);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.header-left p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.glass-button {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glass-button:hover,
.metallic-hover:hover {
    background: var(--metallic-gold);
    color: var(--primary-black);
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== METRICS GRID ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.metallic-border {
    border: 2px solid transparent;
    background-image: 
        linear-gradient(var(--glass-bg-dark), var(--glass-bg-dark)),
        var(--metallic-gold);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--metallic-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.metric-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value .value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.metric-value .change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.metric-value .change.positive {
    color: var(--success);
}

.metric-value .change.negative {
    color: var(--danger);
}

/* ===== CHARTS ===== */
.charts-section {
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.chart-container {
    padding: 1.5rem;
    min-height: 400px;
}

.chart-container h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart {
    width: 100%;
    height: 300px;
    position: relative;
}

/* ===== ACTION ITEMS ===== */
.action-items-section,
.portfolio-section,
.alerts-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.action-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-item {
    background: var(--tertiary-black);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.2);
    border-color: var(--glass-border-bright);
}

.priority-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.priority-badge.high {
    background: rgba(239, 68, 68, 0.3);
    border: 1px solid var(--priority-high);
    color: var(--priority-high);
}

.priority-badge.medium {
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid var(--priority-medium);
    color: var(--priority-medium);
}

.priority-badge.low {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid var(--priority-low);
    color: var(--priority-low);
}

.action-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    padding-right: 80px;
}

.action-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-right: 80px;
}

.action-amount {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-glass {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
}

.btn-glass:hover {
    background: var(--metallic-gold);
    color: var(--primary-black);
    border-color: var(--primary-gold);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* ===== PORTFOLIO ALLOCATION ===== */
.portfolio-allocation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allocation-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.allocation-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.allocation-info .category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.allocation-info .percentage {
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.allocation-bar {
    height: 8px;
    background: var(--quaternary-black);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

.allocation-amount {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== ALERTS ===== */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--tertiary-black);
    border-radius: 12px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.alert-item.warning {
    border-left-color: var(--warning);
}

.alert-item.success {
    border-left-color: var(--success);
}

.alert-item.info {
    border-left-color: var(--info);
}

.alert-item i {
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.alert-item.warning i {
    color: var(--warning);
}

.alert-item.success i {
    color: var(--success);
}

.alert-item.info i {
    color: var(--info);
}

.alert-content p {
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.alert-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== MODULES ===== */
.module {
    display: none;
}

.module.active {
    display: block;
}

.module-header {
    margin-bottom: 2rem;
}

.module-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--metallic-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.module-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* ===== TRADES TABLE ===== */
.trades-table-container {
    overflow-x: auto;
    border-radius: 12px;
}

.trades-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
}

.trades-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--glass-border);
    background: var(--glass-bg);
}

.trades-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.trades-table tr:hover {
    background: var(--glass-bg);
}

/* ===== 3D VISUALIZATION ===== */
#3d-visualization-container {
    width: 100%;
    height: 600px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.3d-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.action-item,
.allocation-item,
.alert-item {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--metallic-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}
