body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.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;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.alert-card {
    border-left: 4px solid;
}


.alert-low {
    border-left-color: #28a745;
}

.alert-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.badge-low {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}


.btn-action {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-view {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-resolve {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    color: white;
}

.btn-delete {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
}

.btn-filter {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.btn-filter:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    color: white;
    transform: scale(1.05);
}

.btn-action:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 30px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.alert-custom {
    border-radius: 15px;
    border: none;
    font-weight: 500;
}

.filter-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}


.type-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-smoke {
    background: #ffcdd2;
    color: #c62828;
}

.type-fire {
    background: #ffcdd2;
    color: #c62828;
}

        .type-motion {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .type-masked {
            background: #fff3e0;
            color: #ef6c00;
        }
        
        .type-mobile_usage {
            background: #e8f5e8;
            color: #2e7d32;
        }
        
        .type-mobile-phone {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .type-pet_dog {
            background: #f3e5f5;
            color: #7b1fa2;
        }
        
        .type-fire {
            background: #ffebee;
            color: #c62828;
        }
        
        .type-smoke {
            background: #f5f5f5;
            color: #424242;
        }
        
        .type-fall-detected {
            background: #fff3e0;
            color: #ef6c00;
        }
        
        .type-spill {
            background: #e8f5e8;
            color: #2e7d32;
        }
        
        .type-drowning {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .type-swimming {
            background: #e0f2f1;
            color: #00695c;
        }
        
        .type-mask {
            background: #e8f5e8;
            color: #2e7d32;
        }
        
        .type-Fall-Detected {
            background: #fff3e0;
            color: #ef6c00;
        }
        
        .type-Spill {
            background: #e8f5e8;
            color: #2e7d32;
        }
        
        .type-Drowning {
            background: #e3f2fd;
            color: #1565c0;
        }
        
        .type-Swimming {
            background: #e0f2f1;
            color: #00695c;
        }
        
        .type-pet_dog {
            background: #f3e5f5;
            color: #7b1fa2;
        }
        
        .type-shoplifting {
            background: #ffebee;
            color: #d32f2f;
        }
        
        .type-Shoplifting {
            background: #ffebee;
            color: #d32f2f;
        }