:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 20px;
}

#map {
    height: 700px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#cyclone-list {
    height: 700px;
    overflow-y: auto;
    padding-right: 10px;
}

.cyclone-card {
    background: var(--card-background);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.cyclone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cyclone-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.weather-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.severity-indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.emergency-info {
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    border-left: 4px solid var(--accent-color);
}

.emergency-info h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.emergency-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.contact-card i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

/* Custom Scrollbar */
#cyclone-list::-webkit-scrollbar {
    width: 8px;
}

#cyclone-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#cyclone-list::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
    
    #map, #cyclone-list {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .weather-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Levels */
.alert-severe {
    background-color: #ff4757;
}

.alert-high {
    background-color: #ffa502;
}

.alert-moderate {
    background-color: #ffdd59;
    color: #2f3542;
}

.alert-low {
    background-color: #7bed9f;
}

/* Relief Information Styles */
.relief-info {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    box-shadow: var(--box-shadow);
}

.relief-info h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.relief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.relief-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.relief-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.relief-card ul {
    list-style-type: none;
}

.relief-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.relief-card ul li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Animation for updates */
@keyframes highlight {
    0% { background-color: rgba(52, 152, 219, 0.2); }
    100% { background-color: transparent; }
}

.highlight {
    animation: highlight 2s ease-out;
}
