/* ==========================================
   SOC Onboarding - Modern UI Styles
   Light/Dark Mode with CSS Custom Properties
   ========================================== */

/* --- Theme Variables --- */
:root {
    /* Light Mode Colors */
    --bg-body: #f8fafc;
    --bg-body-gradient-1: rgba(59, 130, 246, 0.05);
    --bg-body-gradient-2: rgba(139, 92, 246, 0.03);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --bg-card-border: rgba(0, 0, 0, 0.06);
    --bg-card-border-hover: rgba(0, 0, 0, 0.1);
    --bg-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --bg-navbar: rgba(255, 255, 255, 0.97);
    --bg-navbar-border: rgba(0, 0, 0, 0.06);
    --bg-input: rgba(255, 255, 255, 0.9);
    --bg-input-focus: rgba(255, 255, 255, 1);
    --bg-input-border: rgba(0, 0, 0, 0.12);
    --bg-input-border-hover: rgba(0, 0, 0, 0.18);
    --bg-input-border-focus: rgba(59, 130, 246, 0.5);
    --bg-hover: rgba(0, 0, 0, 0.03);
    --bg-subtle: rgba(0, 0, 0, 0.02);
    --bg-code: rgba(0, 0, 0, 0.04);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-muted: #94a3b8;
    --text-placeholder: #94a3b8;

    --nav-text: #475569;
    --nav-text-hover: #0f172a;
    --nav-text-active: #2563eb;
    --nav-bg-hover: rgba(0, 0, 0, 0.04);
    --nav-bg-active: rgba(59, 130, 246, 0.08);

    --border-divider: rgba(0, 0, 0, 0.06);
    --border-table: rgba(0, 0, 0, 0.04);

    --scrollbar-thumb: #cbd5e1;
    --scrollbar-thumb-hover: #94a3b8;

    --selection-bg: rgba(59, 130, 246, 0.2);
    --selection-color: #0f172a;

    --autofill-bg: #ffffff;
    --autofill-text: #0f172a;

    --log-bg: rgba(15, 23, 42, 0.95);
    --log-text: #34d399;
    --log-border: rgba(255, 255, 255, 0.05);

    --gradient-text: linear-gradient(135deg, #1e293b, #475569);
    --gradient-text-blue: linear-gradient(135deg, #2563eb, #0891b2);

    --hero-grid-color: rgba(59, 130, 246, 0.04);
    --hero-orb-1: rgba(59, 130, 246, 0.06);
    --hero-orb-2: rgba(6, 182, 212, 0.04);
    --hero-orb-3: rgba(139, 92, 246, 0.03);

    --tooltip-bg: #1e293b;
    --tooltip-border: rgba(255, 255, 255, 0.1);
    --tooltip-text: #e2e8f0;

    --empty-icon-bg: rgba(59, 130, 246, 0.08);
}

.dark {
    /* Dark Mode Colors */
    --bg-body: #020617;
    --bg-body-gradient-1: rgba(59, 130, 246, 0.08);
    --bg-body-gradient-2: rgba(139, 92, 246, 0.04);
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(15, 23, 42, 0.8);
    --bg-card-border: rgba(255, 255, 255, 0.06);
    --bg-card-border-hover: rgba(255, 255, 255, 0.1);
    --bg-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --bg-navbar: rgba(2, 6, 23, 0.97);
    --bg-navbar-border: rgba(255, 255, 255, 0.05);
    --bg-input: rgba(15, 23, 42, 0.8);
    --bg-input-focus: rgba(15, 23, 42, 1);
    --bg-input-border: rgba(255, 255, 255, 0.08);
    --bg-input-border-hover: rgba(255, 255, 255, 0.12);
    --bg-input-border-focus: rgba(59, 130, 246, 0.5);
    --bg-hover: rgba(255, 255, 255, 0.03);
    --bg-subtle: rgba(255, 255, 255, 0.02);
    --bg-code: rgba(255, 255, 255, 0.04);

    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --text-placeholder: #475569;

    --nav-text: #94a3b8;
    --nav-text-hover: #f1f5f9;
    --nav-text-active: #60a5fa;
    --nav-bg-hover: rgba(255, 255, 255, 0.06);
    --nav-bg-active: rgba(59, 130, 246, 0.1);

    --border-divider: rgba(255, 255, 255, 0.06);
    --border-table: rgba(255, 255, 255, 0.03);

    --scrollbar-thumb: #334155;
    --scrollbar-thumb-hover: #475569;

    --selection-bg: rgba(59, 130, 246, 0.3);
    --selection-color: #fff;

    --autofill-bg: #0f172a;
    --autofill-text: #f1f5f9;

    --log-bg: rgba(0, 0, 0, 0.4);
    --log-text: #34d399;
    --log-border: rgba(255, 255, 255, 0.05);

    --gradient-text: linear-gradient(135deg, #f8fafc, #94a3b8);
    --gradient-text-blue: linear-gradient(135deg, #60a5fa, #06b6d4);

    --hero-grid-color: rgba(59, 130, 246, 0.03);
    --hero-orb-1: rgba(59, 130, 246, 0.10);
    --hero-orb-2: rgba(6, 182, 212, 0.06);
    --hero-orb-3: rgba(139, 92, 246, 0.05);

    --tooltip-bg: #1e293b;
    --tooltip-border: rgba(255, 255, 255, 0.1);
    --tooltip-text: #e2e8f0;

    --empty-icon-bg: rgba(59, 130, 246, 0.1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

::selection {
    background: var(--selection-bg);
    color: var(--selection-color);
}

body {
    background: var(--bg-body);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--bg-body-gradient-1), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, var(--bg-body-gradient-2), transparent);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* --- Navbar Glass --- */
.navbar-glass {
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--bg-navbar-border);
    transition: background 0.3s ease;
}

/* --- Navigation Links --- */
.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-text);
    transition: all 0.2s ease;
}
.nav-link:hover {
    color: var(--nav-text-hover);
    background: var(--nav-bg-hover);
}
.nav-link.active {
    color: var(--nav-text-active);
    background: var(--nav-bg-active);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--nav-text);
    transition: all 0.2s ease;
}
.mobile-nav-link:hover {
    color: var(--nav-text-hover);
    background: var(--nav-bg-hover);
}

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: 1.25rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: var(--bg-card-border-hover);
    box-shadow: var(--bg-card-shadow);
}

/* --- Stat Card --- */
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 1.25rem 1.25rem 0 0;
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--bg-card-border-hover);
    box-shadow: var(--bg-card-shadow);
}
.stat-card.blue::before { background: linear-gradient(90deg, #3b82f6, #06b6d4); }
.stat-card.green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.red::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.yellow::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.stat-card .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card.blue .stat-icon { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.stat-card.green .stat-icon { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-card.red .stat-icon { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.stat-card.yellow .stat-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* --- Form Inputs --- */
input.form-input,
select.form-input,
textarea.form-input,
.form-input {
    width: 100% !important;
    background: var(--bg-input) !important;
    background-color: var(--bg-input) !important;
    border: 1px solid var(--bg-input-border) !important;
    border-radius: 0.875rem !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-primary) !important;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
input.form-input::placeholder,
.form-input::placeholder { color: var(--text-placeholder) !important; }

/* Override browser autofill */
input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus,
input.form-input:-webkit-autofill:active,
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #ffffff inset !important;
    box-shadow: 0 0 0 9999px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    border-color: var(--bg-input-border) !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #0f172a;
}
.dark input.form-input:-webkit-autofill,
.dark input.form-input:-webkit-autofill:hover,
.dark input.form-input:-webkit-autofill:focus,
.dark input.form-input:-webkit-autofill:active,
.dark .form-input:-webkit-autofill,
.dark .form-input:-webkit-autofill:hover,
.dark .form-input:-webkit-autofill:focus,
.dark .form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #0f172a inset !important;
    box-shadow: 0 0 0 9999px #0f172a inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    border-color: var(--bg-input-border) !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #f1f5f9;
}
input.form-input:focus,
.form-input:focus {
    border-color: var(--bg-input-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background: var(--bg-input-focus) !important;
    background-color: var(--bg-input-focus) !important;
}
input.form-input:hover:not(:focus),
.form-input:hover:not(:focus) {
    border-color: var(--bg-input-border-hover) !important;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 0 1 .708 0L8 8.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* --- Themed Input (used inline in templates) --- */
.themed-input,
.themed-card input[type="text"],
.themed-card input[type="email"],
.themed-card input[type="password"],
.themed-card input[type="number"],
.themed-card select {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border-color: var(--bg-input-border) !important;
}
.themed-input::placeholder,
.themed-card input::placeholder {
    color: var(--text-placeholder) !important;
}
.themed-input:focus,
.themed-card input:focus,
.themed-card select:focus {
    border-color: var(--bg-input-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background-color: var(--bg-input-focus) !important;
}
.themed-input:hover:not(:focus),
.themed-card input:hover:not(:focus),
.themed-card select:hover:not(:focus) {
    border-color: var(--bg-input-border-hover) !important;
}
/* Force text visible in dark mode */
.dark .themed-card input,
.dark .themed-card select,
.dark .themed-input,
.dark input.form-input {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    caret-color: #f1f5f9 !important;
}
.dark .themed-card input::placeholder,
.dark .themed-input::placeholder,
.dark input.form-input::placeholder {
    -webkit-text-fill-color: #475569 !important;
    color: #475569 !important;
    opacity: 1 !important;
}
/* Autofill override - dark mode (hardcoded colors for reliability) */
.dark .themed-card input:-webkit-autofill,
.dark .themed-card input:-webkit-autofill:hover,
.dark .themed-card input:-webkit-autofill:focus,
.dark .themed-card input:-webkit-autofill:active,
.dark .themed-input:-webkit-autofill,
.dark .themed-input:-webkit-autofill:hover,
.dark .themed-input:-webkit-autofill:focus,
.dark .themed-input:-webkit-autofill:active,
.dark input.form-input:-webkit-autofill,
.dark input.form-input:-webkit-autofill:hover,
.dark input.form-input:-webkit-autofill:focus,
.dark input.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #0f172a inset !important;
    box-shadow: 0 0 0 9999px #0f172a inset !important;
    -webkit-text-fill-color: #f1f5f9 !important;
    color: #f1f5f9 !important;
    caret-color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
/* Autofill override - light mode */
.themed-input:-webkit-autofill,
.themed-input:-webkit-autofill:hover,
.themed-input:-webkit-autofill:focus,
.themed-input:-webkit-autofill:active,
.themed-card input:-webkit-autofill,
.themed-card input:-webkit-autofill:hover,
.themed-card input:-webkit-autofill:focus,
.themed-card input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 9999px #ffffff inset !important;
    box-shadow: 0 0 0 9999px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    caret-color: #0f172a !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
/* Select option styling for dark mode */
.themed-card select option,
select.form-input option {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}
.dark .themed-card select option,
.dark select.form-input option {
    background-color: #0f172a !important;
    color: #f1f5f9 !important;
}
.dark .themed-card select,
.dark select.form-input {
    -webkit-text-fill-color: #f1f5f9 !important;
    color-scheme: dark;
}
.dark select {
    color-scheme: dark;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.875rem;
    border: 1px solid var(--bg-card-border);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background: var(--nav-bg-hover);
    border-color: var(--bg-card-border-hover);
    color: var(--text-primary);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}
.btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-neutral { background: rgba(100, 116, 139, 0.15); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.2); }
.badge-linux { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-windows { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }

.dark .badge-success { color: #34d399; }
.dark .badge-danger { color: #f87171; }
.dark .badge-warning { color: #fbbf24; }
.dark .badge-info { color: #60a5fa; }
.dark .badge-neutral { color: #94a3b8; }
.dark .badge-linux { color: #34d399; }
.dark .badge-windows { color: #60a5fa; }

/* --- Table --- */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.modern-table thead th {
    padding: 0.875rem 1.25rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-divider);
}
.modern-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-table);
    font-size: 0.875rem;
}
.modern-table tbody tr {
    transition: background 0.15s ease;
}
.modern-table tbody tr:hover {
    background: var(--bg-hover);
}
.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- Log Output --- */
.log-output {
    background: var(--log-bg);
    border: 1px solid var(--log-border);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--log-text);
    overflow: auto;
    max-height: 20rem;
    white-space: pre-wrap;
    word-break: break-all;
}

/* --- Status Pulse --- */
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.status-deploying {
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --- Progress Bar --- */
.progress-bar {
    height: 4px;
    border-radius: 9999px;
    background: var(--bg-card-border);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.5s ease;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* --- Hero Grid Background --- */
.hero-grid {
    background-image:
        linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, black, transparent);
}

/* --- Gradient Text --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text-blue {
    background: var(--gradient-text-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Step Indicator --- */
.step-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}
.step-circle.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.step-circle.completed {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}
.step-circle.pending {
    background: var(--bg-hover);
    color: var(--text-muted);
    border: 1px solid var(--bg-card-border);
}

/* --- Feature Card Hover --- */
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-card:hover::before {
    opacity: 1;
}

/* --- Dashed Add Button --- */
.add-server-btn {
    width: 100%;
    padding: 1.25rem;
    border: 2px dashed var(--bg-card-border);
    border-radius: 1.25rem;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.add-server-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.05);
}

/* --- Animations for staggered entrance --- */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* --- Tooltip --- */
.tooltip-container {
    position: relative;
}
.tooltip-container .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.375rem 0.75rem;
    background: var(--tooltip-bg);
    border: 1px solid var(--tooltip-border);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--tooltip-text);
    white-space: nowrap;
    transition: all 0.2s ease;
    z-index: 50;
}
.tooltip-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}
.empty-state-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: var(--empty-icon-bg);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

/* --- Glow Effect --- */
.glow-blue { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
.glow-green { box-shadow: 0 0 20px rgba(16, 185, 129, 0.15); }

/* --- Theme Toggle Button --- */
.theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid var(--bg-card-border);
    background: var(--bg-hover);
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--nav-bg-hover);
    border-color: var(--bg-card-border-hover);
    transform: scale(1.05);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.dark .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}
.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}
.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* --- Themed Card (for template inline usage) --- */
.themed-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    transition: all 0.3s ease;
}

.themed-bg-subtle {
    background: var(--bg-subtle);
}

.themed-bg-hover {
    background: var(--bg-hover);
}

/* --- About SOC Page Styles --- */
.soc-hero-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.04), rgba(139, 92, 246, 0.04));
}
.dark .soc-hero-gradient {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.06), rgba(139, 92, 246, 0.06));
}

.soc-role-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.soc-role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bg-card-shadow);
    border-color: var(--bg-card-border-hover);
}

.soc-flow-step {
    position: relative;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 1rem;
    transition: all 0.3s ease;
}
.soc-flow-step:hover {
    box-shadow: var(--bg-card-shadow);
}

/* Smooth theme transition for all elements */
*, *::before, *::after {
    transition-property: background-color, border-color, color, box-shadow;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}
/* Exclude elements that have their own transitions */
a, button, input, select, textarea,
.glass-card, .btn-primary, .btn-secondary, .btn-success, .btn-danger,
.nav-link, .mobile-nav-link, .feature-card, .stat-card, .theme-toggle,
.soc-role-card, .soc-flow-step {
    transition-duration: 0.3s;
}
