/**
 * Saolix Technologies Inc.
 * Project: Saolix Eagle AML
 * Description: Stylesheet - saolix-theme.css
 * File Path: frontend/public/styles/saolix-theme.css
 * Version: 0.75.713
 * Last Modified: 2025-05-29
 */

:root {
    /* Background Colors */
    --saolix-bg-primary: #090e24;
    /* Slightly lightened from #020617 for visibility */
    --saolix-bg-secondary: #0f172a;
    /* Slate 900 */
    --saolix-bg-tertiary: #1e293b;
    /* Slate 800 */

    /* Foreground Colors */
    --saolix-fg-primary: #f8fafc;
    /* Slate 50 */
    --saolix-fg-secondary: #e2e8f0;
    /* Slate 200 */
    --saolix-fg-muted: #94a3b8;
    /* Slate 400 */
    --saolix-fg-subtle: #64748b;
    /* Slate 500 */

    /* Brand Colors - Blue */
    --saolix-blue-500: #0ea5e9;
    /* Sky 500 - Primary */
    --saolix-blue-600: #0284c7;
    /* Sky 600 - Hover */
    --saolix-blue-700: #0369a1;
    /* Sky 700 - Active */
    --saolix-blue-400: #38bdf8;
    /* Sky 400 - Accent */
    --saolix-blue-300: #7dd3fc;
    /* Sky 300 - Light */

    /* Brand Colors - Pink/Magenta (Nebula) */
    --saolix-pink-400: #f472b6;
    /* Pink 400 - Nebula Primary */
    --saolix-pink-500: #ec4899;
    /* Pink 500 - Nebula Secondary */
    --saolix-purple-400: #c084fc;
    /* Purple 400 - Nebula Accent */
    --saolix-purple-500: #a855f7;
    /* Purple 500 */

    /* Status Colors */
    --saolix-success: #4ade80;
    /* Green 400 */
    --saolix-success-bg: rgba(22, 163, 74, 0.1);
    --saolix-success-border: rgba(22, 163, 74, 0.2);

    --saolix-warning: #fcd34d;
    /* Yellow 300 */
    --saolix-warning-bg: rgba(234, 179, 8, 0.1);
    --saolix-warning-border: rgba(234, 179, 8, 0.2);

    --saolix-danger: #fca5a5;
    /* Red 300 */
    --saolix-danger-bg: rgba(239, 68, 68, 0.1);
    --saolix-danger-border: rgba(239, 68, 68, 0.2);

    --saolix-info: #7dd3fc;
    /* Sky 300 */
    --saolix-info-bg: rgba(56, 189, 248, 0.1);
    --saolix-info-border: rgba(56, 189, 248, 0.2);

    /* Glassmorphism */
    --saolix-glass-bg: rgba(15, 23, 42, 0.6);
    --saolix-glass-border: rgba(255, 255, 255, 0.08);
    --saolix-glass-border-subtle: rgba(255, 255, 255, 0.06);

    /* Shadows */
    --saolix-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --saolix-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --saolix-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --saolix-shadow-glow-blue: 0 0 15px rgba(14, 165, 233, 0.4);
    --saolix-shadow-glow-pink: 0 0 20px rgba(244, 114, 182, 0.3);

    /* Border Radius */
    --saolix-radius-sm: 8px;
    --saolix-radius-md: 12px;
    --saolix-radius-lg: 16px;
    --saolix-radius-xl: 20px;
    --saolix-radius-pill: 999px;

    /* Transitions */
    --saolix-transition-fast: 0.15s ease-out;
    --saolix-transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --saolix-transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background: transparent;
    color: var(--saolix-fg-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

html {
    background: var(--saolix-bg-primary);
}

/* ============================================
   NEBULA BACKGROUND EFFECT - THEMEABLE
   ============================================ */

/* Default Theme: Blue-Pink */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--nebula-primary, rgba(244, 114, 182, 0.3)) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 20%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--nebula-secondary, rgba(236, 72, 153, 0.1)) 0%, var(--nebula-tertiary, rgba(139, 92, 246, 0.1)) 50%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   THEME VARIANTS
   ============================================ */

/* Theme: Green-Teal Nebula */
body[data-theme="green-teal"] {
    --nebula-primary: rgba(52, 211, 153, 0.55);
    /* Emerald 400 */
    --nebula-secondary: rgba(16, 185, 129, 0.35);
    /* Emerald 500 */
    --nebula-tertiary: rgba(20, 184, 166, 0.25);
    /* Teal 500 */
}

/* Theme: Purple-Violet Nebula */
body[data-theme="purple-violet"] {
    --nebula-primary: rgba(192, 132, 252, 0.55);
    /* Purple 400 */
    --nebula-secondary: rgba(168, 85, 247, 0.35);
    /* Purple 500 */
    --nebula-tertiary: rgba(139, 92, 246, 0.25);
    /* Violet 500 */
}

/* Theme: Orange-Red Nebula */
body[data-theme="orange-red"] {
    --nebula-primary: rgba(251, 146, 60, 0.55);
    /* Orange 400 */
    --nebula-secondary: rgba(249, 115, 22, 0.35);
    /* Orange 500 */
    --nebula-tertiary: rgba(239, 68, 68, 0.25);
    /* Red 500 */
}

/* Theme: Cyan-Blue Nebula */
body[data-theme="cyan-blue"] {
    --nebula-primary: rgba(34, 211, 238, 0.55);
    /* Cyan 400 */
    --nebula-secondary: rgba(6, 182, 212, 0.35);
    /* Cyan 500 */
    --nebula-tertiary: rgba(59, 130, 246, 0.25);
    /* Blue 500 */
}

/* Theme: No Nebula (Clean Dark) */
body[data-theme="no-nebula"]::before,
body[data-theme="no-nebula"]::after {
    display: none;
}


/* ============================================
   GLASSMORPHISM COMPONENTS
   ============================================ */

.saolix-glass-panel {
    background: var(--saolix-glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--saolix-glass-border);
    box-shadow: var(--saolix-shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: var(--saolix-radius-lg);
}

.saolix-glass-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--saolix-glass-border-subtle);
    border-radius: var(--saolix-radius-md);
    transition: all var(--saolix-transition-base);
}

.saolix-glass-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: var(--saolix-glass-bg);
    transform: translateY(-2px);
}

/* ============================================
   BUTTONS - SAOLIX DESIGN SYSTEM
   ============================================ */

/* Base Button */
.saolix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--saolix-radius-pill);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--saolix-transition-base);
    border: none;
    white-space: nowrap;
    gap: 8px;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Shimmer effect on hover */
.saolix-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.saolix-btn:hover::before {
    left: 100%;
}

/* Size Variants */
.saolix-btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.saolix-btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.saolix-btn-xl {
    padding: 20px 44px;
    font-size: 18px;
    font-weight: 700;
}

/* Icon-only buttons */
.saolix-btn-icon {
    padding: 12px;
    border-radius: var(--saolix-radius-md);
}

.saolix-btn-icon-sm {
    padding: 8px;
    border-radius: var(--saolix-radius-sm);
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */

.saolix-btn-primary {
    background: linear-gradient(135deg, var(--saolix-blue-500), var(--saolix-blue-600));
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.saolix-btn-primary:hover {
    background: linear-gradient(135deg, var(--saolix-blue-600), var(--saolix-blue-700));
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.saolix-btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.saolix-btn-primary:disabled {
    background: rgba(14, 165, 233, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* ============================================
   SECONDARY BUTTON
   ============================================ */

.saolix-btn-secondary {
    background: transparent;
    border: 2px solid rgba(148, 163, 184, 0.3);
    color: var(--saolix-fg-secondary);
    backdrop-filter: blur(10px);
}

.saolix-btn-secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
}

.saolix-btn-secondary:active {
    transform: translateY(0) scale(0.98);
    background: rgba(148, 163, 184, 0.15);
}

.saolix-btn-secondary:disabled {
    border-color: rgba(148, 163, 184, 0.15);
    color: rgba(148, 163, 184, 0.4);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   SUCCESS BUTTON
   ============================================ */

.saolix-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.saolix-btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.saolix-btn-success:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.saolix-btn-success:disabled {
    background: rgba(34, 197, 94, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* ============================================
   WARNING BUTTON
   ============================================ */

.saolix-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.saolix-btn-warning:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.saolix-btn-warning:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.saolix-btn-warning:disabled {
    background: rgba(245, 158, 11, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* ============================================
   DANGER BUTTON
   ============================================ */

.saolix-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.saolix-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.saolix-btn-danger:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.saolix-btn-danger:disabled {
    background: rgba(239, 68, 68, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.5;
}

/* ============================================
   GHOST BUTTON
   ============================================ */

.saolix-btn-ghost {
    background: transparent;
    color: var(--saolix-fg-muted);
    border: none;
}

.saolix-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--saolix-fg-primary);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.saolix-btn-ghost:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.saolix-btn-ghost:disabled {
    color: rgba(148, 163, 184, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   GLASS BUTTON (Glassmorphism)
   ============================================ */

.saolix-btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--saolix-fg-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.saolix-btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.saolix-btn-glass:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.15);
}

.saolix-btn-glass:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   OUTLINE VARIANTS
   ============================================ */

.saolix-btn-outline-primary {
    background: transparent;
    border: 2px solid var(--saolix-blue-500);
    color: var(--saolix-blue-400);
}

.saolix-btn-outline-primary:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--saolix-blue-400);
    color: var(--saolix-blue-300);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.saolix-btn-outline-success {
    background: transparent;
    border: 2px solid #22c55e;
    color: #4ade80;
}

.saolix-btn-outline-success:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #4ade80;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.saolix-btn-outline-danger {
    background: transparent;
    border: 2px solid #ef4444;
    color: #fca5a5;
}

.saolix-btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #fca5a5;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ============================================
   LOADING STATE
   ============================================ */

.saolix-btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.saolix-btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: saolix-spin 0.6s linear infinite;
}

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

/* ============================================
   BUTTON GROUPS
   ============================================ */

.saolix-btn-group {
    display: inline-flex;
    gap: 0;
}

.saolix-btn-group .saolix-btn {
    border-radius: 0;
}

.saolix-btn-group .saolix-btn:first-child {
    border-top-left-radius: var(--saolix-radius-pill);
    border-bottom-left-radius: var(--saolix-radius-pill);
}

.saolix-btn-group .saolix-btn:last-child {
    border-top-right-radius: var(--saolix-radius-pill);
    border-bottom-right-radius: var(--saolix-radius-pill);
}

.saolix-btn-group .saolix-btn:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}


/* ============================================
   BADGES
   ============================================ */

.saolix-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: var(--saolix-radius-pill);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    gap: 6px;
}

.saolix-badge-success {
    background: var(--saolix-success-bg);
    color: var(--saolix-success);
    border: 1px solid var(--saolix-success-border);
}

.saolix-badge-warning {
    background: var(--saolix-warning-bg);
    color: var(--saolix-warning);
    border: 1px solid var(--saolix-warning-border);
}

.saolix-badge-danger {
    background: var(--saolix-danger-bg);
    color: var(--saolix-danger);
    border: 1px solid var(--saolix-danger-border);
}

.saolix-badge-info {
    background: var(--saolix-info-bg);
    color: var(--saolix-info);
    border: 1px solid var(--saolix-info-border);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

/* Form Group */
.saolix-form-group {
    margin-bottom: 1.5rem;
}

.saolix-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--saolix-fg-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.saolix-form-label-required::after {
    content: ' *';
    color: var(--saolix-danger);
}

.saolix-form-hint {
    display: block;
    font-size: 13px;
    color: var(--saolix-fg-muted);
    margin-top: 0.375rem;
}

.saolix-form-error {
    display: block;
    font-size: 13px;
    color: var(--saolix-danger);
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Text Input */
.saolix-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--saolix-radius-md);
    color: var(--saolix-fg-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--saolix-transition-base);
    backdrop-filter: blur(10px);
}

.saolix-input::placeholder {
    color: var(--saolix-fg-subtle);
}

.saolix-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.saolix-input:focus {
    outline: none;
    border-color: var(--saolix-blue-500);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.saolix-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.saolix-input.error {
    border-color: var(--saolix-danger);
}

.saolix-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Input Sizes */
.saolix-input-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.saolix-input-lg {
    padding: 16px 20px;
    font-size: 16px;
}

/* Textarea */
.saolix-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--saolix-radius-md);
    color: var(--saolix-fg-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--saolix-transition-base);
    resize: vertical;
    min-height: 100px;
}

.saolix-textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.saolix-textarea:focus {
    outline: none;
    border-color: var(--saolix-blue-500);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Select */
.saolix-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--saolix-radius-md);
    color: var(--saolix-fg-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all var(--saolix-transition-base);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.saolix-select:focus {
    outline: none;
    border-color: var(--saolix-blue-500);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Checkbox */
.saolix-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.saolix-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--saolix-radius-sm);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--saolix-transition-base);
    position: relative;
}

.saolix-checkbox:hover {
    border-color: var(--saolix-blue-400);
    background: rgba(14, 165, 233, 0.1);
}

.saolix-checkbox:checked {
    background: var(--saolix-blue-500);
    border-color: var(--saolix-blue-500);
}

.saolix-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.saolix-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* Radio Button */
.saolix-radio-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.saolix-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all var(--saolix-transition-base);
    position: relative;
}

.saolix-radio:hover {
    border-color: var(--saolix-blue-400);
    background: rgba(14, 165, 233, 0.1);
}

.saolix-radio:checked {
    border-color: var(--saolix-blue-500);
    background: rgba(14, 165, 233, 0.2);
}

.saolix-radio:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--saolix-blue-500);
}

.saolix-radio:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* Toggle Switch */
.saolix-switch-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.saolix-switch {
    appearance: none;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--saolix-radius-pill);
    position: relative;
    cursor: pointer;
    transition: all var(--saolix-transition-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.saolix-switch::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all var(--saolix-transition-base);
}

.saolix-switch:checked {
    background: var(--saolix-blue-500);
    border-color: var(--saolix-blue-500);
}

.saolix-switch:checked::after {
    left: 26px;
}

.saolix-switch:hover {
    background: rgba(255, 255, 255, 0.15);
}

.saolix-switch:checked:hover {
    background: var(--saolix-blue-600);
}

.saolix-switch:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
}

/* ============================================
   CARDS
   ============================================ */

.saolix-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--saolix-radius-lg);
    padding: 1.5rem;
    transition: all var(--saolix-transition-base);
}

.saolix-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.saolix-card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.saolix-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--saolix-fg-primary);
    margin: 0;
}

.saolix-card-subtitle {
    font-size: 0.875rem;
    color: var(--saolix-fg-muted);
    margin-top: 0.25rem;
}

.saolix-card-body {
    color: var(--saolix-fg-secondary);
    line-height: 1.6;
}

.saolix-card-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ============================================
   MODALS
   ============================================ */

.saolix-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: saolix-fade-in 0.2s ease-out;
}

.saolix-modal {
    background: var(--saolix-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--saolix-glass-border);
    border-radius: var(--saolix-radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: saolix-slide-up 0.3s ease-out;
}

@keyframes saolix-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saolix-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.saolix-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--saolix-fg-primary);
    margin: 0;
}

.saolix-modal-close {
    background: transparent;
    border: none;
    color: var(--saolix-fg-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--saolix-radius-sm);
    transition: all var(--saolix-transition-fast);
}

.saolix-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--saolix-fg-primary);
}

.saolix-modal-body {
    padding: 1.5rem;
    color: var(--saolix-fg-secondary);
    line-height: 1.6;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.saolix-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* ============================================
   TABLES
   ============================================ */

.saolix-table-wrapper {
    overflow-x: auto;
    border-radius: var(--saolix-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.saolix-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.4);
}

.saolix-table thead {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.saolix-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--saolix-fg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.saolix-table td {
    padding: 1rem 1.5rem;
    color: var(--saolix-fg-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.saolix-table tbody tr {
    transition: all var(--saolix-transition-fast);
}

.saolix-table tbody tr:hover {
    background: rgba(14, 165, 233, 0.05);
}

.saolix-table tbody tr:last-child td {
    border-bottom: none;
}

/* Striped Table */
.saolix-table-striped tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.saolix-table-striped tbody tr:nth-child(even):hover {
    background: rgba(14, 165, 233, 0.05);
}

/* ============================================
   ALERTS
   ============================================ */

.saolix-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--saolix-radius-md);
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.saolix-alert-success {
    background: var(--saolix-success-bg);
    border-color: var(--saolix-success);
    color: var(--saolix-success);
}

.saolix-alert-warning {
    background: var(--saolix-warning-bg);
    border-color: var(--saolix-warning);
    color: var(--saolix-warning);
}

.saolix-alert-danger {
    background: var(--saolix-danger-bg);
    border-color: var(--saolix-danger);
    color: var(--saolix-danger);
}

.saolix-alert-info {
    background: var(--saolix-info-bg);
    border-color: var(--saolix-info);
    color: var(--saolix-info);
}

.saolix-alert-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.saolix-alert-message {
    opacity: 0.9;
    line-height: 1.5;
}

/* ============================================
   TOOLTIPS
   ============================================ */

.saolix-tooltip {
    position: relative;
    display: inline-block;
}

.saolix-tooltip-text {
    visibility: hidden;
    background: rgba(15, 23, 42, 0.95);
    color: var(--saolix-fg-primary);
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--saolix-radius-sm);
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--saolix-transition-fast);
}

.saolix-tooltip:hover .saolix-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ============================================
   DROPDOWNS
   ============================================ */

.saolix-dropdown {
    position: relative;
    display: inline-block;
}

.saolix-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--saolix-glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--saolix-glass-border);
    border-radius: var(--saolix-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 100;
    animation: saolix-fade-in 0.2s ease-out;
}

.saolix-dropdown-item {
    padding: 0.75rem 1rem;
    color: var(--saolix-fg-secondary);
    cursor: pointer;
    transition: all var(--saolix-transition-fast);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.saolix-dropdown-item:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--saolix-fg-primary);
}

.saolix-dropdown-item:first-child {
    border-top-left-radius: var(--saolix-radius-md);
    border-top-right-radius: var(--saolix-radius-md);
}

.saolix-dropdown-item:last-child {
    border-bottom-left-radius: var(--saolix-radius-md);
    border-bottom-right-radius: var(--saolix-radius-md);
}

.saolix-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.saolix-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--saolix-radius-pill);
    overflow: hidden;
}

.saolix-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--saolix-blue-500), var(--saolix-blue-400));
    border-radius: var(--saolix-radius-pill);
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.saolix-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: saolix-shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   DIVIDERS
   ============================================ */

.saolix-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2rem 0;
}

.saolix-divider-vertical {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    height: 100%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.saolix-heading-1 {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--saolix-fg-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.saolix-heading-2 {
    font-size: 2em;
    font-weight: 700;
    color: var(--saolix-fg-primary);
    letter-spacing: -0.01em;
    margin: 0;
}

.saolix-heading-3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--saolix-fg-primary);
    margin: 0;
}

.saolix-heading-4 {
    font-size: 1.25em;
    font-weight: 600;
    color: var(--saolix-fg-primary);
    margin: 0;
}

.saolix-text-muted {
    color: var(--saolix-fg-muted);
    font-size: 0.95em;
}

.saolix-text-subtle {
    color: var(--saolix-fg-subtle);
    font-size: 0.9em;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 2px var(--saolix-bg-primary), 0 0 0 4px rgba(59, 130, 246, 0.6);
    border-radius: 4px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes saolix-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes saolix-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes saolix-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.saolix-pulse {
    animation: saolix-pulse 2s ease-in-out infinite;
}

.saolix-fade-in {
    animation: saolix-fade-in 0.3s ease-out;
}

.saolix-slide-in-right {
    animation: saolix-slide-in-right 0.3s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.saolix-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.saolix-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.saolix-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.saolix-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.saolix-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 768px) {

    .saolix-grid-2,
    .saolix-grid-3,
    .saolix-grid-4 {
        grid-template-columns: 1fr;
    }

    .saolix-heading-1 {
        font-size: 2em;
    }

    .saolix-heading-2 {
        font-size: 1.5em;
    }
}

/* ============================================
   THEME USAGE NOTES
   ============================================
   
   To use this theme in your HTML:
   
   1. Link this CSS file:
      <link rel="stylesheet" href="saolix-theme.css">
   
   2. Add Google Fonts (Inter):
      <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
   
   3. Use the classes:
      <div class="saolix-container">
          <div class="saolix-glass-panel">
              <h1 class="saolix-heading-1">Your Title</h1>
              <p class="saolix-text-muted">Your content</p>
              <button class="saolix-btn saolix-btn-primary">Click Me</button>
          </div>
      </div>
   
   4. The nebula background effect is automatically applied to <body>
   
   5. Theme Customization:
      Apply data-theme attribute to <body> for different color schemes:
      - data-theme="blue-pink" (default)
      - data-theme="green-teal"
      - data-theme="purple-violet"
      - data-theme="orange-red"
      - data-theme="no-nebula"
   
   ============================================ */