:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

body {
    background-color: #f4f6f9;
    font-family: 'Inter', sans-serif;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.main-content {
    background-color: #f4f6f9;
    min-height: 100vh;
}

/* Dashboard Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-light-primary { background-color: rgba(67, 97, 238, 0.1); color: var(--primary-color); }
.bg-light-success { background-color: rgba(76, 201, 240, 0.1); color: var(--success-color); }
.bg-light-danger { background-color: rgba(247, 37, 133, 0.1); color: var(--danger-color); }
.bg-light-warning { background-color: rgba(252, 191, 73, 0.1); color: #fcbf49; }

/* Camera Overlay */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

#video {
    width: 100%;
    height: auto;
    transform: scaleX(-1); /* Mirror effect */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.overlay-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 10;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding-bottom: 20px;
    }
}
