/* ============================================
   SCP HMIS - Components Stylesheet
   Reusable UI Components
   ============================================ */

/* === SIDEBAR COMPONENT === */
.sidebar {
    width: 18rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right-width: 1px;
    transition: 0.3s;
}

.dark .sidebar {
    background: #020617 !important;
    border-color: #1e293b;
}

.light .sidebar {
    background: #ffffff !important;
    border-color: #e2e8f0;
}

/* === LOGO FRAME === */
.logo-frame {
    height: 90px;
    min-height: 90px;
    max-height: 90px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom-style: solid;
    border-bottom-width: 1px;
}

@media (max-width: 1024px) {
    .logo-frame {
        height: 80px;
        min-height: 80px;
    }
}

.dark .logo-frame {
    border-color: #1e293b;
    background-color: #020617 !important;
}

.light .logo-frame {
    border-color: #e2e8f0;
    /* Exact match with main-header */
    background-color: #ffffff !important;
}

/* === NAVIGATION LINKS === */
.nav-link {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    font-size: 13px;
    cursor: pointer;
    margin: 2px 0;
    text-decoration: none !important;
    padding: 12px 24px;
    display: flex;
    align-items: center;
}

.dark .nav-link {
    color: #94a3b8;
}

.light .nav-link {
    color: #475569;
    /* slate-600 */
}

.nav-link i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: 0.3s;
    margin-right: 12px;
}

.nav-link:hover {
    background: #f1f5f9;
}

.nav-link:hover i {
    color: #2563eb;
}

.nav-link.active {
    border-left-color: #2563eb;
    background: #eff6ff;
    font-weight: 700;
}

.nav-link.active i {
    color: #2563eb !important;
}

.dark .nav-link.active {
    background: #1e293b;
    color: #60a5fa !important;
    border-left-color: #60a5fa;
}

.dark .nav-link.active i {
    color: #60a5fa !important;
}

.light .nav-link.active {
    color: #2563eb !important;
}

/* === STAT CARDS === */
.stat-card {
    border-width: 1px;
    border-radius: 12px;
    padding: 1rem;
    transition: 0.3s;
    overflow: hidden;
}

@media (min-width: 768px) {
    .stat-card {
        padding: 1.25rem;
    }
}

.dark .stat-card {
    background-color: #0f172a !important;
    border-color: #1e293b;
}

.light .stat-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* === CAMERA CONTAINER === */
.cam-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

/* === STATUS DOT === */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}