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

.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-container {
    display: flex;
    height: 90vh; 
    padding: 20px;
    gap: 20px;
}

.control-panel {
    width: 25%;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.map-panel {
    flex-grow: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 10px;
    position: relative;
}

.kpi-card {
    background: #ecf0f1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.kpi-value {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.detail-panel {
    margin-top: 20px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.score-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    padding: 8px;
    background: #fafafa;
    border-radius: 6px;
}

.score-high { color: #c0392b; font-weight: bold; }
.score-med { color: #f39c12; font-weight: bold; }
.score-low { color: #27ae60; font-weight: bold; }
.score-na { color: #95a5a6; font-style: italic; font-size: 12px; }

.helper-text {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 15px;
}

/* Buttons */
.primary-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease;
}
.primary-btn.large {
    padding: 12px 16px;
    font-weight: 600;
}
.primary-btn:hover { background-color: #27ae60; }
.primary-btn:active { transform: scale(0.98); }

.btn-secondary {
    background-color: #bdc3c7;
    color: #2c3e50;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.btn-secondary:hover { background-color: #aeb6bf; }

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    display: none; /* toggled to flex */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: #fff;
    width: 520px;
    max-width: 95vw;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
}

/* Authentication pages */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #2ecc71;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}
