:root {
    --red-bombero: #d32f2f;
    --dark-red-bombero: #b71c1c;
    --light-red-bombero: #ef5350;
}

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

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background: linear-gradient(135deg, var(--red-bombero), var(--dark-red-bombero));
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 3px;
}

.logo-modal {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    object-fit: contain;
    background-color: white;
    border-radius: 50%;
    padding: 5px;
}

#content-area {
    min-height: 85vh;
}

/* Dashboard cards */
.stat-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    color: white;
}

/* Form styling */
.form-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h3 {
    border-bottom: 2px solid var(--red-bombero);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--dark-red-bombero);
}

.btn-danger {
    background-color: var(--red-bombero);
    border-color: var(--red-bombero);
}

.btn-danger:hover {
    background-color: var(--dark-red-bombero);
    border-color: var(--dark-red-bombero);
}

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

.btn-outline-danger:hover {
    background-color: var(--red-bombero);
    border-color: var(--red-bombero);
}

/* Reports section */
.filter-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 20px;
}

/* Intervention list */
.intervention-card {
    border-left: 4px solid var(--red-bombero);
    transition: transform 0.2s ease;
}

.intervention-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Personnel status indicator */
.status-available {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: inline-block;
    margin-right: 5px;
}

.status-on-duty {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FF9800;
    display: inline-block;
    margin-right: 5px;
}

.status-unavailable {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #F44336;
    display: inline-block;
    margin-right: 5px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    min-height: 38px;
}

/* Custom weather icons */
.weather-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        height: auto;
    }
    
    .sidebar .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}

/* Tooltips */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid var(--red-bombero);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}