:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Login Page Styles */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    margin-bottom: 24px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--accent-color);
}

.btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background: #1a252f;
}

/* Main Map Page Styles */
#map {
    height: 100vh;
    width: 100%;
    z-index: 1;
}

.navbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar .user-info {
    font-size: 14px;
    font-weight: 500;
}

.logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    padding: 5px;
}

.popup-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--primary-color);
}

.popup-info {
    margin-bottom: 15px;
    font-size: 14px;
}

.popup-info div {
    margin-bottom: 5px;
}

.popup-info span {
    font-weight: 600;
}

.popup-form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .navbar {
        width: 90%;
        justify-content: space-between;
    }
}

/* Estilos para etiquetas combinadas (Sección + Colonia) */
.combined-label {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ccc !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    color: #333;
    font-weight: 500;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    pointer-events: none;
}

.combined-label div {
    margin: 2px 0;
}
