/* CityLive360 Main Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-disabled {
    opacity: 0.7;
}

.feature-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* AdSense Placeholder */
.adsense-placeholder {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    background: #f8f9fa;
}

/* Custom Ad Section */
.custom-ad-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
}

/* Footer */
.footer {
    background: linear-gradient(to right, #1a1a2e 0%, #16213e 100%);
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    color: #667eea !important;
}

/* Live Dot Animation */
.live-dot {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Map Container */
#map {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #5a6fd6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .camera-card {
        margin-bottom: 20px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Admin Panel Styles */
.sidebar {
    min-height: 100vh;
    background: #343a40;
    color: white;
}

.sidebar a {
    color: #ccc;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s;
}

.sidebar a:hover {
    background: #495057;
    color: white;
}

.sidebar a.active {
    background: #667eea;
    color: white;
}

.card-stats {
    border-left: 4px solid;
}

.card-stats.primary {
    border-left-color: #667eea;
}

.card-stats.success {
    border-left-color: #28a745;
}

.card-stats.warning {
    border-left-color: #ffc107;
}

.card-stats.danger {
    border-left-color: #dc3545;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-lg {
    border-radius: 15px;
}

/* Print Styles */
@media print {
    .header, .footer, .adsense-placeholder {
        display: none;
    }
}