﻿
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --purple-color: #7430f9;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--white);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.header-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.controls-panel {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-filter {
    min-width: 280px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .filter-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
        outline: none;
    }

.stats-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--light-gray);
    border: none;
    border-radius: 12px;
    padding: 6px 15px;
    text-align: center;
    min-width: 120px;
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--secondary-color);
    margin: 0;
}

#map {
    height: calc(100vh - 180px);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 1rem 1.5rem 0;
    font-family: 'Segoe UI', sans-serif;
}

.project-popup-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #212529;
}

.progress-container {
    margin: 1rem 0;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #20c997);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.contractor-badge {
    background: linear-gradient(135deg, var(--purple-color), #8b5cf6);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.spinner-border-sm {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 768px) {
    .controls-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .stats-grid {
        justify-content: center;
    }

    .header-title {
        font-size: 1.5rem;
    }
}

.select2-container--default .select2-selection--single, .select2-selection .select2-selection--single, .SumoSelect > .CaptionCont {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

.form-control {
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e5e5;
}

label {
    color: #333;
    font-weight: 500;
    margin-bottom: 1px;
}

.sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .right-side, .sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 50px !important;
    z-index: 9999;
}
