:root {
    --sidebar-width: 240px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #3b82f6;
    --primary-color: #3b82f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f5f9;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .nav-link {
    border-radius: 8px;
    padding: 10px 16px;
    margin: 2px 0;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: var(--sidebar-hover);
}

.sidebar .nav-link.active {
    background-color: var(--sidebar-active);
    font-weight: 600;
}

.main-content {
    min-height: 100vh;
    padding-bottom: 2rem;
}

.dashboard-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.dashboard-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bg-purple-subtle {
    background-color: rgba(111, 66, 193, 0.12);
}

.text-purple {
    color: #6f42c1;
}

.card {
    border-radius: 12px;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #0f172a;
}

.recognition-log {
    height: 480px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .recognition-log {
        height: 260px;
    }
}

#recognitionLog::-webkit-scrollbar {
    width: 6px;
}

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

#recognitionLog::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.badge {
    font-weight: 500;
}

.alert {
    border-radius: 10px;
    border: none;
}

select.form-select-sm {
    font-size: 0.85rem;
}

@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        z-index: 1000;
        transition: left 0.3s;
    }

    .sidebar.show {
        left: 0;
    }

    .main-content {
        margin-left: 0;
    }
}
