/* NVR Web Interface - Main Styles */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --dark: #212529;
    --darker: #1a1d21;
}

body {
    background-color: var(--darker);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

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

.card-header {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Progress bars */
.progress {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.3);
}

.progress-bar {
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
}

.table-dark th {
    border-color: rgba(255, 255, 255, 0.1);
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
}

/* Buttons */
.btn-lg {
    padding: 15px 25px;
    border-radius: 10px;
}

/* Status indicator */
#nvr-status i {
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RTL fixes */
.bi {
    margin-left: 0.25rem;
}

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

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Face card */
.face-card {
    transition: all 0.3s;
}

.face-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.face-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-lg {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    main {
        padding: 10px !important;
    }
}
