@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #07090e;
    --bg-card: #0f131c;
    --bg-card-hover: #161c28;
    --bg-card-subtle: #121824;
    --border-color: #1e2638;
    --border-hover: #2e3a54;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-cyan: #06b6d4;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0b0e14;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 19, 28, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.glass-card {
    background: #0f131c;
    border: 1px solid var(--border-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradients */
.gradient-text-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-badge-yes {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.gradient-badge-no {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tab Active Styles */
.nav-tab.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(6, 182, 212, 0.1));
    color: #60a5fa;
    border-left: 3px solid #3b82f6;
}

.sub-tab.active {
    background: #2563eb;
    color: #ffffff;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: #111827;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease forwards;
    min-width: 280px;
}

.toast.success { border-color: #10b981; }
.toast.error { border-color: #ef4444; }
.toast.info { border-color: #3b82f6; }

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

/* Probability Bar */
.prob-bar {
    height: 6px;
    border-radius: 9999px;
    background: #1f2937;
    overflow: hidden;
    display: flex;
}

.prob-bar-yes {
    background: #10b981;
    height: 100%;
    transition: width 0.3s ease;
}

.prob-bar-no {
    background: #ef4444;
    height: 100%;
    transition: width 0.3s ease;
}

/* Pulse indicator */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}
