@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-gradient-start: #0a0b16; /* Deep space black/blue */
    --bg-gradient-end: #1e1332; /* Deep space purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #f5a623; /* Star yellow/orange */
    --accent-hover: #f94144; /* Rocket red */
    --danger-color: #ef4444;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Login Page Specifics */
.login-container {
    max-width: 400px;
    width: 100%;
    padding: 2.5rem;
    margin: auto; /* Centers vertically and horizontally in a flex container */
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(245, 166, 35, 0.3));
}

.form-control {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    background: linear-gradient(45deg, #5e2e8e, #4b2475);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2rem;
    padding: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #f5a623, #f94144);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 65, 68, 0.4);
}

.live-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 8px #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Navbar overrides */
.navbar {
    background: rgba(10, 11, 22, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand {
    font-weight: 700;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Camera Player specific */
.video-wrapper {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.status-connecting {
    background-color: rgba(245, 158, 11, 0.8); /* Amber */
    color: white;
}

.status-live {
    background-color: rgba(16, 185, 129, 0.8); /* Emerald */
    color: white;
}
.status-live::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1.5s infinite;
}

.status-error {
    background-color: rgba(239, 68, 68, 0.8); /* Red */
    color: white;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Utilities */
.text-muted {
    color: var(--text-secondary) !important;
}
