body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

#map {
    width: 100vw;
    height: 100vh;
}

/* Animated Background Overlay */
.bg-overlay {
    background: linear-gradient(45deg, #1a365d 0%, #2d3748 50%, #4a5568 100%);
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

.modal-dialog {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1001;
}

.modal-frame {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-frame:hover {
    transform: translateY(-5px);
}

.modal-content {
    padding: 40px;
}

.modal-body {
    text-align: center;
}

.modal-body img {
    width: 120px;
    height: auto;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.modal-body img:hover {
    transform: scale(1.05);
}

.modal-body h2 {
    color: #1a365d;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.modal-body h3 {
    color: #48bb78;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 8px 0 24px;
}

.modal-body p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.btn-custom {
    background-color: #48bb78;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.btn-custom:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.3);
}

.btn-custom:active {
    transform: translateY(0);
}

/* Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
    background: white;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 25%;
    animation-delay: 10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 25%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -15px) rotate(5deg); }
    50% { transform: translate(0, -30px) rotate(0deg); }
    75% { transform: translate(-15px, -15px) rotate(-5deg); }
}

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.control-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.control-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.control-btn.active {
    background: #4CAF50;
    color: white;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.3);
}

/* Legend */
.legend {
    position: absolute;
    bottom: 100px;
    right: 30px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    backdrop-filter: blur(5px);
    min-width: 200px;
}

.legend h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.legend-description {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 13px;
    color: #444;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.2);
}

/* Popup Styles */
.info-popup {
    padding: 15px;
    min-width: 200px;
}

.info-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
}

.info-popup p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-popup strong {
    color: #333;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.status-badge.no-data {
    background-color: #f0f0f0;
    color: #666;
}

.status-badge.has-data {
    background-color: #4CAF50;
    color: white;
}

/* Logo Control */
.logo-control img {
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    transition: transform 0.3s ease;
    max-width: 150px;
    height: auto;
}

.logo-control img:hover {
    transform: scale(1.05);
}

/* Coordinates Control */
.leaflet-control-coordinates {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
}