body {
    overflow: hidden;
    /* Prevent full page scroll if possible, assuming containers scroll */
    background-color: #f8f9fa;
}

#mycanvas {
    border: 1px solid #ddd;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ace_editor {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

/* Custom Modal Styling (Modern Luxury) */
.custom-modal-content {
    background: rgba(40, 44, 75, 0.95);
    /* Deep dark blue */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    font-family: 'Prompt', sans-serif;
}

.custom-modal-btn {
    background: linear-gradient(45deg, #4361ee, #3a0ca3);
    border: none;
    border-radius: 10px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
    background: linear-gradient(45deg, #4895ef, #4361ee);
}
/* =========================================
   LUXURY THEME OVERRIDES
   ========================================= */
html.theme-luxury body {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    font-family: 'Prompt', 'Inter', sans-serif;
    color: #334155;
}

html.theme-luxury .navbar-dark.bg-dark {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid #fbbf24;
}

html.theme-luxury .navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
html.theme-luxury .navbar-brand i {
    color: #fbbf24;
}

html.theme-luxury .text-white.align-self-center {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.9rem;
}

html.theme-luxury .btn-outline-light {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #000 !important;
    border: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 16px;
    box-shadow: 0 4px 10px rgba(251, 191, 36, 0.3);
}
html.theme-luxury .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(251, 191, 36, 0.5);
}

html.theme-luxury .bg-light {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.theme-luxury .border-start, html.theme-luxury .border-bottom, html.theme-luxury .border-top {
    border-color: rgba(0,0,0,0.05) !important;
}

html.theme-luxury[data-term-theme="dark"] #terminal-header {
    background: #1e293b !important;
    color: #cbd5e1 !important;
    border-top: 1px solid #0f172a !important;
    border-bottom: 1px solid #0f172a !important;
}

html.theme-luxury[data-term-theme="dark"] #terminal-output, html.theme-luxury[data-term-theme="dark"] #terminal-input-row {
    background: #0f172a !important;
    color: #10b981 !important;
    font-family: 'Fira Code', monospace !important;
}
html.theme-luxury[data-term-theme="dark"] #terminal-input {
    color: #10b981 !important;
    caret-color: #10b981 !important;
}

html.theme-luxury[data-term-theme="light"] #terminal-header {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border-top: 1px solid #cbd5e1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}

html.theme-luxury[data-term-theme="light"] #terminal-output, html.theme-luxury[data-term-theme="light"] #terminal-input-row {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-family: 'Fira Code', monospace !important;
}
html.theme-luxury[data-term-theme="light"] #terminal-input {
    color: #0f172a !important;
    caret-color: #0f172a !important;
}

html.theme-luxury .form-select {
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

html.theme-luxury #mycanvas {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
}

html.theme-luxury .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}
html.theme-luxury .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fbbf24;
}

html.theme-luxury .theme-btn-assignments {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
}
html.theme-luxury .theme-btn-assignments:hover {
    background: #0ea5e9;
    color: #fff;
}

/* =========================================
   LOGIN PAGE LUXURY THEME
   ========================================= */
html.theme-luxury .login-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
}
html.theme-luxury .login-bg::before, html.theme-luxury .login-bg::after {
    display: none;
}
html.theme-luxury .login-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}
html.theme-luxury .login-title {
    color: #0f172a;
}
html.theme-luxury .login-subtitle, html.theme-luxury .login-label {
    color: #475569;
}
html.theme-luxury .login-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
html.theme-luxury .login-input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    background: #ffffff;
}
html.theme-luxury .login-input::placeholder {
    color: #94a3b8;
}
html.theme-luxury .login-btn {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}
html.theme-luxury .login-btn:hover {
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}
html.theme-luxury .login-divider {
    background: rgba(0,0,0,0.08);
}
html.theme-luxury .login-footer {
    color: #64748b;
}
