/* AlertFlow Design System */

:root {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --color-brand: #2563eb;
    --color-brand-dark: #1d4ed8;
}

*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    letter-spacing: -0.011em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

.text-display {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.2); }
}

.af-live-dot {
    animation: live-pulse 2s ease-in-out infinite;
}

.af-nav-active {
    position: relative;
    background-color: #eff6ff;
    color: #2563eb;
}

.af-nav-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.5rem;
    width: 0.25rem;
    border-radius: 0 9999px 9999px 0;
    background-color: #2563eb;
}

.af-stat-icon-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.45);
}

.af-stat-icon-green {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, 0.45);
}

.af-stat-icon-amber {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(245, 158, 11, 0.45);
}

.af-stat-icon-rose {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    box-shadow: 0 8px 20px -6px rgba(244, 63, 94, 0.45);
}

.af-input {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: #0f172a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.af-input::placeholder {
    color: #94a3b8;
}

.af-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.af-card {
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.85);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.af-card-hover {
    transition: all 0.2s ease;
}

.af-card-hover:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 12px 40px -12px rgba(37, 99, 235, 0.15);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
