/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme - Matching ImGui */
    --bg-primary: rgb(16, 16, 16);
    --bg-secondary: rgb(20, 20, 20);
    --bg-tertiary: rgb(12, 12, 14);
    --accent-color: rgb(234, 92, 87); /* Coral Red - 0.92, 0.36, 0.34 */
    --accent-hover: rgb(255, 110, 105);
    --text-primary: rgb(242, 242, 250); /* 0.95, 0.95, 0.98 */
    --text-secondary: rgba(242, 242, 250, 0.7);
    --text-muted: rgba(242, 242, 250, 0.5);
    --border-color: rgba(37, 37, 38, 0.5);
    --glass-bg: rgba(18, 18, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(172, 158, 215, 0.8), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(234, 92, 87, 0.5), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, 50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, -50px) scale(0.9);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes successCheck {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--tx)) scale(1);
        opacity: 0;
    }
}

/* Screen Management */
.screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.screen.active {
    display: block;
}

/* Glass Card Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(234, 92, 87, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Icons */
.icon, .nav-icon, .card-icon, .tab-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.menu-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Login Screen - Perfectly centered on X and Y */
#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    box-sizing: border-box;
}

/* Blur effect when success screen is shown */
#loginScreen.blurred {
    filter: blur(8px);
    opacity: 0.6;
    pointer-events: none;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

body.blurred .background-animation {
    filter: blur(8px);
    transition: filter 0.5s ease;
}

.login-container {
    width: 100%;
    max-width: clamp(320px, 30vw, 500px);
    padding: clamp(1.5rem, 3vw, 3rem);
    animation: slideUp 0.5s ease-out;
    margin: 0 auto;
    position: relative;
}

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

.brand-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.brand-flare {
    color: var(--text-primary);
}

.brand-sol {
    color: var(--accent-color);
}

.brand-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input {
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(234, 92, 87, 0.1);
}

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Buttons */
.btn {
    position: relative;
    background: var(--accent-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 92, 87, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

.btn-primary.disabled,
.btn-primary:disabled {
    background: rgba(100, 100, 100, 0.3);
    color: rgba(242, 242, 250, 0.4);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background: rgba(100, 100, 100, 0.3);
    transform: none;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover .btn-shine {
    left: 100%;
}

.btn-download {
    width: 100%;
    margin-top: var(--spacing-md);
}

.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-align: center;
    margin-top: var(--spacing-xs);
    min-height: 1.5rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-slotted {
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: var(--spacing-sm);
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-color);
    background: rgba(234, 92, 87, 0.1);
}

/* Content Sections */
.content-section {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + 80px); /* Account for navbar */
    overflow-y: auto;
    overflow-x: hidden;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    padding: var(--spacing-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: var(--accent-color);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.info-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(234, 92, 87, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Instructions */
.instructions-card {
    grid-column: 1 / -1;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.instruction-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Loader Section */
.loader-container {
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-card {
    padding: var(--spacing-xl);
}

.loader-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(12, 12, 14, 0.5);
    border-radius: var(--radius-sm);
}

.loader-status.disconnected {
    background: rgba(234, 92, 87, 0.1);
    border: 1px solid rgba(234, 92, 87, 0.3);
}

.loader-status.disconnected .status-indicator {
    background: rgb(234, 92, 87);
}

.loader-status.disconnected #loaderStatusText {
    color: rgb(234, 92, 87);
    font-weight: 600;
}

.loader-status.connected {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.loader-status.connected .status-indicator {
    background: rgb(76, 175, 80);
}

.loader-status.connected #loaderStatusText {
    color: rgb(76, 175, 80);
    font-weight: 600;
}

#loaderStatusText {
    font-size: 1.1rem;
    font-weight: 600;
}

.loader-instructions {
    margin-bottom: var(--spacing-lg);
}

.loader-instructions h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.steps-list li {
    counter-increment: step-counter;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.loader-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    min-height: 2rem;
}

/* Loading Modal */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.loading-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.loading-modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    min-width: 450px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.loading-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.loading-status-messages {
    background: rgba(12, 12, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.loading-status-messages::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.loading-status-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: var(--spacing-sm) var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    border-left: 3px solid transparent;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateX(-10px);
    animation: messageSlideIn 0.4s ease-out forwards;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.loading-status-message:last-child {
    margin-bottom: 0;
}

.loading-status-message.success {
    color: rgb(76, 175, 80);
    border-left-color: rgb(76, 175, 80);
    background: rgba(76, 175, 80, 0.08);
}

.loading-status-message.error {
    color: rgb(234, 92, 87);
    border-left-color: rgb(234, 92, 87);
    background: rgba(234, 92, 87, 0.08);
}

.loading-status-message.info {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background: rgba(234, 92, 87, 0.05);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Section */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.menu-tabs {
    display: flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    overflow-x: auto;
}

.menu-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.menu-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.menu-tab.active {
    color: var(--accent-color);
    background: rgba(234, 92, 87, 0.15);
}

.menu-content {
    padding: var(--spacing-lg);
    min-height: 600px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: var(--spacing-sm);
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.setting-item label:not(.toggle-switch) {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    user-select: none;
}

.toggle-switch input[type="checkbox"] {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 50px;
    height: 26px;
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-switch input[type="checkbox"]:checked + .slider::before {
    transform: translateX(24px);
    background: var(--text-primary);
}

.toggle-switch .label-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Select */
.setting-select {
    background: rgba(12, 12, 14, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.setting-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(234, 92, 87, 0.1);
}

.setting-select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.setting-slider {
    flex: 1;
    height: 6px;
    background: rgba(12, 12, 14, 0.8);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(234, 92, 87, 0.3);
}

.setting-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(234, 92, 87, 0.5);
}

.setting-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(234, 92, 87, 0.3);
}

.setting-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(234, 92, 87, 0.5);
}

.slider-value {
    min-width: 40px;
    text-align: right;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* Success Animation Screen */
#successScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.success-container {
    text-align: center;
    animation: fadeIn 0.5s ease;
    position: relative;
    z-index: 1000;
}

/* Success screen should be on top and not blurred */
#successScreen {
    z-index: 1000;
    backdrop-filter: blur(0);
}

.success-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
}

.success-icon {
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    filter: drop-shadow(0 0 20px rgba(234, 92, 87, 0.5));
}

.success-circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: successScale 0.6s ease-out forwards;
}

.success-check {
    stroke: currentColor;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: successCheck 0.5s ease-out 0.3s forwards;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    animation: slideUp 0.5s ease 0.4s both;
}

.success-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    animation: slideUp 0.5s ease 0.6s both;
}

.success-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    --tx: 0px;
    animation: particleFloat 1.5s ease-out forwards;
    box-shadow: 0 0 10px var(--accent-color);
}

.particle:nth-child(1) { --tx: 60px; animation-delay: 0.1s; }
.particle:nth-child(2) { --tx: -60px; animation-delay: 0.2s; }
.particle:nth-child(3) { --tx: 40px; animation-delay: 0.3s; }
.particle:nth-child(4) { --tx: -40px; animation-delay: 0.4s; }
.particle:nth-child(5) { --tx: 80px; animation-delay: 0.5s; }
.particle:nth-child(6) { --tx: -80px; animation-delay: 0.6s; }
.particle:nth-child(7) { --tx: 20px; animation-delay: 0.7s; }
.particle:nth-child(8) { --tx: -20px; animation-delay: 0.8s; }

/* Menu Redirect Card */
.menu-redirect-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--spacing-xl);
}

.menu-redirect-card {
    text-align: center;
    padding: var(--spacing-xl);
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

.redirect-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    color: var(--accent-color);
    filter: drop-shadow(0 0 15px rgba(234, 92, 87, 0.4));
    animation: pulse 2s infinite;
}

.menu-redirect-card h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.menu-redirect-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* Menu Page */
#menuPage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

#menuPage.active {
    display: block;
}

.menu-page-container {
    padding: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.back-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-right: var(--spacing-sm);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-3px);
}

.nav-brand {
    display: flex;
    align-items: center;
}

/* Enhanced Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    position: relative;
    overflow: hidden;
}

/* Remove shimmer animation from menu content */
.menu-content.glass-card::before {
    display: none;
}

.info-card:hover,
.loader-card:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(234, 92, 87, 0.5);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(234, 92, 87, 0.5);
}

