:root {
    --primary: #2ecc71;
    --primary-dark: #27ae60;
    --accent: #f1c40f;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 100%;
    max-width: 1200px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #2ecc71, #f1c40f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Location Control */
.location-control {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.location-control label {
    color: var(--dark);
    font-weight: 600;
    font-size: 1.2rem;
}

select {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #f8f9fa;
    cursor: pointer;
    min-width: 250px;
    transition: all 0.3s ease;
}

select:focus {
    border-color: var(--primary);
    outline: none;
}

/* Dashboard Grid */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.card-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

/* Specific Card Styles */
.weather-display {
    text-align: center;
}

.weather-main {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.season-display {
    text-align: center;
}

.season-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.season-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

.alert-item {
    background: rgba(231, 76, 60, 0.2);
    border-left: 4px solid var(--danger);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.crop-item {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid var(--primary);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crop-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.crop-reason {
    font-size: 0.8rem;
    opacity: 0.8;
    font-style: italic;
}

.loader {
    color: var(--accent);
    font-style: italic;
}

.placeholder-text {
    opacity: 0.6;
    text-align: center;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 50px;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Map Styles */
.map-section {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

#map {
    height: 400px;
    width: 100%;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .location-control {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-control label {
        text-align: center;
    }
}
