/* ============================================================
   NEBULAE CLOUD - Premium Design System
   Version: 2.0.0
   Theme: Cyberpunk Enterprise
   Fonts: Cabinet Grotesk + Satoshi + JetBrains Mono
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   IMPORTS
   ──────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;600;700;800;900&family=Satoshi:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ────────────────────────────────────────────────────────────
   CSS VARIABLES (Design Tokens)
   ──────────────────────────────────────────────────────────── */

:root {
    /* ── Colors ── */
    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(139, 92, 246, 0.3);
    
    --secondary: #EC4899;
    --secondary-light: #F472B6;
    --secondary-glow: rgba(236, 72, 153, 0.3);
    
    --accent: #06B6D4;
    --accent-light: #22D3EE;
    --accent-glow: rgba(6, 182, 212, 0.3);
    
    --success: #34D399;
    --success-glow: rgba(52, 211, 153, 0.3);
    --warning: #FBBF24;
    --warning-glow: rgba(251, 191, 36, 0.3);
    --danger: #F87171;
    --danger-glow: rgba(248, 113, 113, 0.3);
    
    /* ── Backgrounds ── */
    --bg-primary: #050505;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #111111;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* ── Borders ── */
    --border-primary: rgba(139, 92, 246, 0.08);
    --border-secondary: rgba(139, 92, 246, 0.12);
    --border-glow: rgba(139, 92, 246, 0.2);
    --border-white: rgba(255, 255, 255, 0.04);
    
    /* ── Text ── */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    --text-muted: rgba(255, 255, 255, 0.2);
    
    /* ── Shadows ── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 40px 80px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 60px rgba(139, 92, 246, 0.05);
    --shadow-glow-lg: 0 0 100px rgba(139, 92, 246, 0.08);
    
    /* ── Typography ── */
    --font-heading: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* ── Spacing ── */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 80px;
    
    /* ── Radius ── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* ── Transitions ── */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* ── Glassmorphism ── */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.04);
    --glass-blur: blur(20px);
    
    /* ── Glow ── */
    --glow-primary: 0 0 40px rgba(139, 92, 246, 0.08);
    --glow-secondary: 0 0 40px rgba(236, 72, 153, 0.08);
}

/* ────────────────────────────────────────────────────────────
   RESET & BASE
   ──────────────────────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── BODY (FIXED: No blank screen bug) ── */
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.page-fading {
    opacity: 0 !important;
}

/* ── Animated Background Mesh ── */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.02) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.02) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    animation: meshMove 30s ease-in-out infinite alternate;
}

@keyframes meshMove {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(2%, -2%) scale(1.02); }
    66% { transform: translate(-1%, 3%) scale(0.98); }
    100% { transform: translate(3%, 1%) scale(1.01); }
}

/* ── Subtle Noise Texture ── */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
    box-shadow: 0 0 20px var(--primary-glow);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
    box-shadow: 0 0 40px var(--primary-glow);
}

/* ────────────────────────────────────────────────────────────
   SELECTION
   ──────────────────────────────────────────────────────────── */

::selection {
    background: var(--primary);
    color: #FFFFFF;
}

::-moz-selection {
    background: var(--primary);
    color: #FFFFFF;
}

/* ────────────────────────────────────────────────────────────
   TYPOGRAPHY
   ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.2; }
h4 { font-size: 1.1rem; line-height: 1.3; }
h5 { font-size: 1rem; line-height: 1.4; }
h6 { font-size: 0.875rem; line-height: 1.5; }

p, li, a, button, input, textarea, select {
    font-family: var(--font-body);
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

/* ── Gradient Text ── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-text-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Mono ── */
.mono, code, .terminal-text {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* ────────────────────────────────────────────────────────────
   PAGE LOADER
   ──────────────────────────────────────────────────────────── */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader .logo {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.page-loader .logo span {
    color: var(--primary);
}

.page-loader .loader-track {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.page-loader .loader-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: loaderSweep 1.5s ease-in-out infinite;
}

@keyframes loaderSweep {
    0% { left: -50%; }
    100% { left: 100%; }
}

@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
    50% { text-shadow: 0 0 60px rgba(139, 92, 246, 0.3); }
}

/* ────────────────────────────────────────────────────────────
   GLASSMORPHISM CARDS
   ──────────────────────────────────────────────────────────── */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}

.glass-card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.glass-card.glow:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow-lg);
    transform: translateY(-4px) scale(1.01);
}

/* ────────────────────────────────────────────────────────────
   BUTTONS
   ──────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* ── Primary ── */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.btn-primary:hover::before {
    transform: rotate(45deg) translate(30%, 30%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--primary-glow);
}

.btn-primary:active {
    transform: scale(0.97);
}

/* ── Secondary ── */
.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-white);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.04);
    transform: translateY(-2px);
}

/* ── Glow ── */
.btn-glow {
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 60px var(--primary-glow); }
}

/* ── Sizes ── */
.btn-sm { padding: 6px 16px; font-size: 12px; }
.btn-md { padding: 10px 24px; font-size: 14px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-xl { padding: 18px 48px; font-size: 18px; }

/* ── Full Width ── */
.btn-block { width: 100%; justify-content: center; }

/* ── Danger ── */
.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* ── Success ── */
.btn-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.15);
}

.btn-success:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.3);
    transform: translateY(-2px);
}

/* ────────────────────────────────────────────────────────────
   INPUTS
   ──────────────────────────────────────────────────────────── */

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

.input-group label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.input-group .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-glow {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-white);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all var(--transition-base);
}

.input-glow::placeholder {
    color: var(--text-tertiary);
}

.input-glow:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 40px var(--primary-glow);
    background: rgba(255, 255, 255, 0.04);
}

.input-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-glow.error {
    border-color: var(--danger);
    box-shadow: 0 0 40px var(--danger-glow);
}

.input-glow.success {
    border-color: var(--success);
    box-shadow: 0 0 40px var(--success-glow);
}

/* ── Input with icon ── */
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.input-icon + .input-glow {
    padding-left: 44px;
}

/* ── Input with toggle ── */
.input-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px 8px;
    font-family: var(--font-body);
    font-size: 12px;
    transition: color var(--transition-fast);
}

.input-toggle:hover {
    color: var(--text-secondary);
}

/* ────────────────────────────────────────────────────────────
   BADGES
   ──────────────────────────────────────────────────────────── */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 2px 14px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-free {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-tertiary);
}

.badge-pro {
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.badge-owner {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.badge-admin {
    background: rgba(96, 165, 250, 0.12);
    color: #60A5FA;
}

.badge-success {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--warning);
}

.badge-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
}

.badge-info {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent);
}

/* ────────────────────────────────────────────────────────────
   TABLES
   ──────────────────────────────────────────────────────────── */

.table-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container thead {
    background: rgba(255, 255, 255, 0.02);
}

.table-container thead th {
    text-align: left;
    padding: 12px 20px;
    color: var(--text-tertiary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table-container tbody td {
    padding: 12px 20px;
    border-top: 1px solid var(--border-white);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
}

.table-container tbody tr {
    transition: background var(--transition-fast);
}

.table-container tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ────────────────────────────────────────────────────────────
   STATUS DOTS
   ──────────────────────────────────────────────────────────── */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    opacity: 0.2;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.running {
    background: var(--success);
    box-shadow: 0 0 20px var(--success-glow);
}
.status-dot.running::after {
    background: var(--success);
}

.status-dot.stopped {
    background: var(--danger);
    box-shadow: 0 0 20px var(--danger-glow);
}
.status-dot.stopped::after {
    background: var(--danger);
}

.status-dot.created {
    background: var(--warning);
    box-shadow: 0 0 20px var(--warning-glow);
}
.status-dot.created::after {
    background: var(--warning);
}

.status-dot.active {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.status-dot.active::after {
    background: var(--accent);
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(2); opacity: 0.4; }
}

/* ────────────────────────────────────────────────────────────
   EMPTY STATE
   ──────────────────────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.empty-state .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.empty-state .icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    font-weight: 300;
}

/* ────────────────────────────────────────────────────────────
   ALERTS / TOASTS
   ──────────────────────────────────────────────────────────── */

.alert {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    display: none;
    font-family: var(--font-body);
}

.alert.show {
    display: block;
    animation: slideInDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert-success {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.15);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.alert-info {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    color: var(--primary-light);
}

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

/* ────────────────────────────────────────────────────────────
   TOAST NOTIFICATIONS
   ──────────────────────────────────────────────────────────── */

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-out {
    animation: toastOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast .toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast .toast-content {
    flex: 1;
}

.toast .toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.toast .toast-message {
    font-size: 13px;
    color: var(--text-tertiary);
}

.toast .toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color var(--transition-fast);
}

.toast .toast-close:hover {
    color: var(--text-primary);
}

.toast.success .toast-icon { color: var(--success); }
.toast.success { border-color: rgba(52, 211, 153, 0.2); }

.toast.error .toast-icon { color: var(--danger); }
.toast.error { border-color: rgba(239, 68, 68, 0.2); }

.toast.info .toast-icon { color: var(--primary); }
.toast.info { border-color: rgba(139, 92, 246, 0.2); }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE UTILITIES
   ──────────────────────────────────────────────────────────── */

.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .show-mobile { display: block; }
}

/* ────────────────────────────────────────────────────────────
   ANIMATIONS (Base)
   ──────────────────────────────────────────────────────────── */

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-down {
    opacity: 0;
    animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-right {
    opacity: 0;
    animation: fadeInRight 0.6s ease forwards;
}

.animate-scale {
    opacity: 0;
    animation: scaleIn 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 5s ease-in-out infinite;
}

/* ── Staggered Delays ── */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
.delay-5 { animation-delay: 0.25s; }
.delay-6 { animation-delay: 0.3s; }
.delay-7 { animation-delay: 0.35s; }
.delay-8 { animation-delay: 0.4s; }
.delay-9 { animation-delay: 0.45s; }
.delay-10 { animation-delay: 0.5s; }

/* ────────────────────────────────────────────────────────────
   SCROLLBAR FOR SPECIFIC ELEMENTS
   ──────────────────────────────────────────────────────────── */

.overflow-scroll {
    overflow-y: auto;
}

.overflow-scroll::-webkit-scrollbar {
    width: 4px;
}

.overflow-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* ────────────────────────────────────────────────────────────
   DIVIDERS
   ──────────────────────────────────────────────────────────── */

.divider {
    border: none;
    border-top: 1px solid var(--border-white);
    margin: var(--spacing-xl) 0;
}

.divider-glow {
    border: none;
    border-top: 1px solid var(--border-secondary);
    margin: var(--spacing-xl) 0;
    box-shadow: 0 0 40px var(--primary-glow);
}

/* ────────────────────────────────────────────────────────────
   GLOW PULSE ANIMATION (For active elements)
   ──────────────────────────────────────────────────────────── */

.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 60px var(--primary-glow); }
}

/* ────────────────────────────────────────────────────────────
   SKELETON LOADING
   ──────────────────────────────────────────────────────────── */

.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(255, 255, 255, 0.04) 50%, 
        rgba(255, 255, 255, 0.02) 100%
    );
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */

/* Tablets */
@media (max-width: 1024px) {
    :root {
        --spacing-4xl: 60px;
        --spacing-3xl: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-4xl: 40px;
        --spacing-3xl: 32px;
        --spacing-2xl: 24px;
        --spacing-xl: 20px;
    }
    
    .glass-card {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .glass-card {
        padding: var(--spacing-sm);
    }
    
    .btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* ────────────────────────────────────────────────────────────
   PRINT
   ──────────────────────────────────────────────────────────── */

@media print {
    body {
        background: #FFFFFF;
        color: #000000;
    }
    
    .glass-card {
        background: #FFFFFF;
        border: 1px solid #DDDDDD;
        box-shadow: none;
    }
    
    .btn {
        display: none;
    }
}   
