.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(76, 78, 150, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 78, 150, 0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stats-icon.cameras {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stats-icon.incidents {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-icon.alerts {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-icon.active {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.activity-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(76, 78, 150, 0.08);
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.activity-icon.alert {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.activity-icon.incident {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.activity-icon.camera {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quick-action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.quick-action-btn.success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.quick-action-btn.warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.section-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #667eea;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.welcome-card h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.welcome-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online {
    background: #43e97b;
    box-shadow: 0 0 10px rgba(67, 233, 123, 0.5);
}

.status-offline {
    background: #ff6b6b;
}

/* Additional styles for better compatibility */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card {
    animation: fadeInUp 0.6s ease-out;
}

.stats-card:nth-child(1) { animation-delay: 0.1s; }
.stats-card:nth-child(2) { animation-delay: 0.2s; }
.stats-card:nth-child(3) { animation-delay: 0.3s; }
.stats-card:nth-child(4) { animation-delay: 0.4s; }

/* Activity card animations */
.activity-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Pulse animation for status indicators */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(67, 233, 123, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 233, 123, 0);
    }
}

.status-online {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-card h1 {
        font-size: 2rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding: 1rem;
    }
    
    .welcome-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .welcome-card h1 {
        font-size: 1.5rem;
    }
    
    .stats-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}