* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.col-2 {
    width: calc(16.666% - 10px);
}

.col-10 {
    width: calc(83.334% - 10px);
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
}

.info {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
}

#updateBtn:hover {
    background: #45a049 !important;
}

#updateBtn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.map-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.legend {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 0 0 auto;
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.legend h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

#legendItems {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item:hover {
    background-color: #f0f0f0 !important;
    transition: background-color 0.2s;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #333;
}

.map-wrapper {
    flex: 1;
    min-width: 0;
}

#map {
    height: calc(100vh - 200px);
    min-height: 600px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

/* Responsive için */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
    }
    
    .legend {
        position: static;
        max-height: none;
    }
    
    .col-2, .col-10 {
        width: 100% !important;
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading.hidden {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading p {
    color: #333;
    margin: 5px 0;
}

#progress {
    font-weight: bold;
    color: #3498db;
}

