/* CSS Design System & Theme Tokens */
:root {
    --bg-primary: #080914;
    --bg-secondary: rgba(18, 20, 38, 0.5);
    --bg-tertiary: #13162b;
    --bg-modal: #0f1124;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.35);
    
    --accent-purple: #a855f7;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --shadow-sm: 0 2px 8px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 24px -4px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.15);
    
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Blobs */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-purple) 0%, var(--accent-indigo) 100%);
}

.bg-glow-2 {
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-indigo) 100%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Main Container Layout */
.app-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar / Header */
.app-header {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

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

.brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-purple);
    line-height: 1;
    margin-bottom: 2px;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-text h1 span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Navigation Buttons */
.app-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.nav-btn.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: var(--shadow-glow);
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.badge {
    margin-left: auto;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.nav-btn.active .badge {
    background: var(--accent-purple);
}

/* Backup and Restore Actions in Sidebar */
.header-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

/* Main Content Workspace */
.app-main {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 100vh;
}

/* Workspace Control Bar */
.workspace-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 480px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-normal);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

/* Buttons Styling */
.primary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
}

.primary-btn svg {
    width: 18px;
    height: 18px;
}

.secondary-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.text-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    color: var(--accent-purple);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.text-btn:hover {
    color: #c084fc;
}

.text-btn svg {
    width: 14px;
    height: 14px;
}

/* Card Grids */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Cards (Configs & Curves) */
.card {
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0;
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.05);
}

.card:hover::before {
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.card-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-type-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    width: max-content;
}

.card-type-tag.curve {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.12);
}

/* Edit/Delete Row Menu */
.card-menu {
    display: flex;
    gap: 0.25rem;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.icon-btn.danger:hover {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.icon-btn svg {
    width: 16px;
    height: 16px;
}

/* Config Sub-Configs list UI inside card */
.sub-configs-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-config-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    transition: var(--transition-fast);
}

.sub-config-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.sub-config-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.sub-config-item:hover .sub-config-name {
    color: var(--text-primary);
}

/* Copy Button Styling */
.copy-badge-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.15);
    color: #c084fc;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.copy-badge-btn:hover {
    background: var(--accent-purple);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.copy-badge-btn svg {
    width: 12px;
    height: 12px;
}

/* Copy confirmation checkmark active state */
.copy-badge-btn.copied {
    background: var(--accent-emerald) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* Curve Preview Style in Curve Card */
.curve-preview {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.85rem;
    border-radius: 10px;
    color: var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.curve-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* Empty State Styling */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    max-width: 420px;
    margin: 4rem auto 0;
    background: rgba(18, 20, 38, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 50%;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Modals Overlay & Modals Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    padding: 1.5rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 620px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transform: translateY(20px) scale(0.97);
    transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.modal-close-btn svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Forms layout inside modals */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    min-height: 140px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    resize: vertical;
}

/* Sub-configs edit dynamic list styling */
.sub-configs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-configs-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.sub-config-row {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.row-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.sub-config-row input {
    padding: 0.6rem 0.8rem !important;
}

.sub-config-row textarea {
    min-height: 70px !important;
    padding: 0.6rem 0.8rem !important;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Toast System (Notifications) */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
    pointer-events: none;
}

.toast {
    background: rgba(15, 17, 36, 0.9);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    transform: translateY(20px);
    opacity: 0;
    animation: toast-in 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
}

.toast.success {
    border-left: 3px solid var(--accent-emerald);
}

.toast.info {
    border-left: 3px solid var(--accent-purple);
}

.toast.error {
    border-left: 3px solid var(--accent-red);
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast.success .toast-icon { color: var(--accent-emerald); }
.toast.info .toast-icon { color: var(--accent-purple); }
.toast.error .toast-icon { color: var(--accent-red); }

.toast-content {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes toast-in {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.toast-out {
    animation: toast-out 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-out {
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Responsive Rules */
@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .app-header {
        height: auto;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.25rem;
        gap: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .app-nav {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .header-actions {
        flex-direction: row;
        margin-top: 0;
    }
    
    .app-main {
        padding: 1.5rem;
        max-height: none;
    }
    
    .workspace-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: none;
    }
    
    .add-buttons .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .brand {
        justify-content: center;
    }
    
    .app-nav {
        justify-content: center;
    }
    
    .header-actions {
        justify-content: center;
    }
}

/* Card Settings Box (General Settings Display) */
.card-settings-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.card:hover .card-settings-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(168, 85, 247, 0.15);
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--accent-purple);
}

.settings-icon {
    width: 13px;
    height: 13px;
    color: var(--accent-purple);
}

.settings-content {
    font-family: var(--font-mono);
    color: var(--text-primary);
    opacity: 0.85;
    word-break: break-word;
}

/* Developer Mode Styling & Visibility */
body:not(.dev-mode) .dev-only {
    display: none !important;
}

.dev-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    justify-content: center;
}

.dev-status svg {
    width: 14px;
    height: 14px;
    color: var(--accent-emerald);
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.action-btn.warning:hover {
    background: rgba(234, 179, 8, 0.08) !important;
    border-color: rgba(234, 179, 8, 0.4) !important;
    color: #facc15 !important;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Server Status Indicator & Dev Animations */
.server-status-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.checking {
    background-color: var(--text-muted);
    box-shadow: 0 0 8px rgba(100, 116, 139, 0.5);
    animation: status-pulse 1.5s infinite ease-in-out;
}

.status-dot.online {
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.status-dot.offline {
    background-color: var(--text-muted);
    box-shadow: none;
}

.status-text {
    color: var(--text-secondary);
}

/* Spinner and status keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Support Me Widget */
.support-card {
    background: rgba(255, 221, 0, 0.02);
    border: 1px solid rgba(255, 221, 0, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
}

.support-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 221, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: var(--transition-normal);
}

.support-card:hover {
    border-color: rgba(255, 221, 0, 0.35);
    box-shadow: 0 8px 24px rgba(255, 221, 0, 0.06), 0 0 15px rgba(255, 221, 0, 0.03);
    transform: translateY(-2px);
}

.support-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.support-title svg {
    width: 18px;
    height: 18px;
}

.support-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFDD00;
    color: #000000;
    text-decoration: none;
    padding: 0.65rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.support-btn:hover {
    background: #ffea55;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.25);
}

.support-btn svg {
    width: 14px;
    height: 14px;
}

/* Sidebar support specific layout spacing */
.sidebar-support {
    margin-top: auto;
}

.sidebar-support + .header-actions {
    margin-top: 0;
}

/* App Header height alignment when sidebar support exists */
.app-header {
    gap: 1.5rem; /* Reduce gap slightly to accommodate support card */
}

/* Hide mobile support on desktop */
.mobile-support-only {
    display: none;
}

/* Support responsiveness */
@media (max-width: 900px) {
    .sidebar-support {
        display: none !important;
    }
    
    .mobile-support-only {
        display: block;
        margin-top: 3rem;
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

