:root {
    --primary: #2B9348;
    --primary-light: #80B918;
    --secondary: #FF9E1B;
    --tertiary: #8B5E34;
    --dark: #1E1E1E;
    --light: #F8F9FA;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
}

.map-container {
    height: 100%;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gradient-bg {
    background: linear-gradient(135deg, rgba(43, 147, 72, 0.1) 0%, rgba(128, 185, 24, 0.05) 100%);
}

.dashboard-card {
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.language-selector {
    position: relative;
}

.language-selector:hover .language-dropdown {
    display: block;
}

.nav-item {
    position: relative;
}

.nav-item:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover:after {
    width: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

canvas {
    height: 300px !important;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
}

.tab-content {
    transition: all 0.3s ease;
}

.tab-content:not(.active) {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100%;
        background-color: white;
        z-index: 100;
        padding: 1.5rem;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu-active:not(.hidden) {
        transform: translateX(0);
    }

    .mobile-menu-active .nav-item {
        margin-bottom: 1rem;
        border-bottom: 1px solid #f3f4f6;
        padding-bottom: 0.5rem;
    }
}

/* Alert animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.alert-critical {
    animation: pulse 2s infinite;
    border-left-width: 6px;
}