/* Nyx AI Studio - Luxury Theme */

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

/* CSS Variables */
:root {
    /* Primary Colors */
    --nyx-deep-purple: #1a0033;
    --nyx-purple: #6B46C1;
    --nyx-light-purple: #9F7AEA;
    --nyx-gold: #FFD700;
    --nyx-pale-gold: #FFF4CC;
    
    /* Background Colors */
    --nyx-bg-primary: #0a0a0f;
    --nyx-bg-secondary: #15151f;
    --nyx-bg-tertiary: #1a1a2e;
    --nyx-bg-card: rgba(26, 26, 46, 0.7);
    
    /* Glass Effect */
    --nyx-glass-bg: rgba(255, 255, 255, 0.05);
    --nyx-glass-border: rgba(255, 255, 255, 0.1);
    
    /* Text Colors */
    --nyx-text-primary: #FFFFFF;
    --nyx-text-secondary: #B8B8CC;
    --nyx-text-muted: #7A7A8C;
    
    /* Effects */
    --nyx-glow: 0 0 20px rgba(159, 122, 234, 0.5);
    --nyx-gold-glow: 0 0 30px rgba(255, 215, 0, 0.6);
    --nyx-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    
    /* Gradients */
    --nyx-gradient-primary: linear-gradient(135deg, #1a0033 0%, #16213e 100%);
    --nyx-gradient-secondary: linear-gradient(135deg, #6B46C1 0%, #9F7AEA 100%);
    --nyx-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--nyx-bg-primary);
    color: var(--nyx-text-primary) !important;
    background-image: url('../images/constellation-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Force text color for all elements */
body * {
    color: var(--nyx-text-primary);
}

/* Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    z-index: -1;
}

/* Animated Stars Background */
@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--nyx-text-primary) !important;
}

h1 {
    font-size: 3rem;
    background: var(--nyx-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

/* Glass Card Component */
.glass-card {
    background: var(--nyx-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--nyx-glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--nyx-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--nyx-gold), transparent);
    animation: shimmer 3s infinite;
}

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

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(159, 122, 234, 0.3);
    border-color: var(--nyx-light-purple);
}

/* Neon Button */
.neon-button {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid var(--nyx-gold);
    background: transparent;
    color: var(--nyx-gold);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--nyx-gradient-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.neon-button:hover {
    color: var(--nyx-bg-primary);
    box-shadow: var(--nyx-gold-glow);
    transform: translateY(-2px);
}

.neon-button:hover::before {
    width: 300px;
    height: 300px;
}

.neon-button span {
    position: relative;
    z-index: 1;
}

/* Input Fields */
.nyx-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--nyx-text-primary) !important;
    font-size: 1rem;
    transition: var(--transition-smooth);
    font-family: 'Rajdhani', sans-serif;
}

.nyx-input option {
    background: var(--nyx-bg-secondary);
    color: var(--nyx-text-primary);
}

.nyx-input:focus {
    outline: none;
    border-color: var(--nyx-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.nyx-input::placeholder {
    color: var(--nyx-text-muted);
}

/* Select Dropdown */
.nyx-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--nyx-text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: 'Rajdhani', sans-serif;
}

.nyx-select option {
    background: var(--nyx-bg-secondary);
    color: var(--nyx-text-primary);
}

/* Textarea */
.nyx-textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--nyx-text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: var(--transition-smooth);
    font-family: 'Rajdhani', sans-serif;
}

.nyx-textarea:focus {
    outline: none;
    border-color: var(--nyx-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

/* Sidebar Navigation */
.nyx-sidebar {
    background: var(--nyx-bg-secondary);
    width: 280px;
    min-height: 100vh;
    padding: 2rem 0;
    border-right: 1px solid var(--nyx-glass-border);
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
}

.nyx-logo {
    text-align: center;
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--nyx-glass-border);
}

.nyx-logo img {
    max-width: 180px;
    height: auto;
}

.nyx-nav {
    padding: 2rem 0;
}

.nyx-nav-item {
    display: block;
    padding: 1rem 2rem;
    color: var(--nyx-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nyx-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--nyx-gradient-gold);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.nyx-nav-item:hover,
.nyx-nav-item.active {
    color: var(--nyx-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nyx-nav-item:hover::before,
.nyx-nav-item.active::before {
    transform: scaleY(1);
}

/* Main Content Area */
.nyx-main {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Page Header */
.nyx-page-header {
    margin-bottom: 3rem;
    position: relative;
}

.nyx-page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.nyx-page-subtitle {
    color: var(--nyx-text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Stats Cards */
.nyx-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nyx-stat-card {
    background: var(--nyx-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--nyx-glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.nyx-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--nyx-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.nyx-stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    background: var(--nyx-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nyx-stat-label {
    color: var(--nyx-text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Form Groups */
.nyx-form-group {
    margin-bottom: 1.5rem;
}

.nyx-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--nyx-text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

/* Alerts */
.nyx-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.nyx-alert-success {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.3);
    color: #2ED573;
}

.nyx-alert-error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.3);
    color: #FF4757;
}

.nyx-alert-info {
    background: rgba(112, 161, 255, 0.1);
    border-color: rgba(112, 161, 255, 0.3);
    color: #70A1FF;
}

/* Loading Animation */
.nyx-loader {
    display: inline-block;
    width: 50px;
    height: 50px;
    position: relative;
}

.nyx-loader::before,
.nyx-loader::after {
    content: '';
    position: absolute;
    border: 3px solid transparent;
    border-top-color: var(--nyx-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.nyx-loader::before {
    width: 100%;
    height: 100%;
    animation-duration: 1.5s;
}

.nyx-loader::after {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-direction: reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1100;
    background: var(--nyx-gradient-secondary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--nyx-shadow);
    color: white;
    font-size: 1.5rem;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nyx-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 1050;
    }
    
    .nyx-sidebar.active {
        transform: translateX(0);
    }
    
    .nyx-main {
        margin-left: 0;
        padding-top: 4rem;
    }
    
    .nyx-page-title {
        font-size: 2rem;
    }
    
    /* Overlay for mobile menu */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .mobile-overlay.active {
        display: block;
    }
}

@media (max-width: 768px) {
    .nyx-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--nyx-gradient-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nyx-light-purple);
}

/* Particle Effect */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    animation: float-up 3s linear;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0.5);
    }
}

/* Glow Text */
.glow-text {
    text-shadow: 0 0 10px currentColor,
                 0 0 20px currentColor,
                 0 0 30px currentColor;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: var(--nyx-bg-secondary);
    border-radius: 10px;
    padding: 1px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--nyx-gradient-gold);
    z-index: -1;
}

.gradient-border > * {
    background: var(--nyx-bg-secondary);
    border-radius: inherit;
    position: relative;
    z-index: 1;
}