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

:root {
    --bg-base: #070a12;
    --bg-surface: #0f1626;
    --bg-surface-elevated: #162036;
    --border-subtle: #1e2c4a;
    --border-highlight: #2f4472;
    --accent-primary: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.25);
}

body {
    background-color: var(--bg-base);
    color: #f1f5f9;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    letter-spacing: -0.01em;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090e1a;
}
::-webkit-scrollbar-thumb {
    background: #1e2c4a;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2f4472;
}

/* Glassmorphic SaaS Cards */
.saas-card {
    background: rgba(15, 22, 38, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Sidebar Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.625rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: #94a3b8;
    transition: all 0.15s ease-in-out;
}

.nav-item:hover {
    color: #ffffff;
    background-color: rgba(30, 44, 74, 0.5);
}

.nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(79, 70, 229, 0.9) 100%);
    box-shadow: 0 4px 16px -2px rgba(99, 102, 241, 0.5);
}

/* Stream Feeds */
.camera-card {
    background: #0a0f1d;
    border: 1px solid #1a253d;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
    transition: all 0.2s ease-in-out;
}

.camera-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
}

.camera-card:fullscreen {
    border-radius: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: #000;
}

.camera-card:fullscreen .camera-feed-container {
    height: calc(100vh - 100px) !important;
    min-height: calc(100vh - 100px) !important;
}

.camera-feed-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 380px;
    background: #020408;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.camera-feed-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #020408;
}

/* Glow Badges */
.badge-pulse {
    position: relative;
}
.badge-pulse::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(4px);
    opacity: 0.6;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* Toast Animation */
.toast {
    pointer-events: auto;
    animation: toastSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hidden {
    display: none !important;
}

