/* Custom styles for Nabatak agricultural advisory system */

/* Arabic font optimization */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');



:root {
    --primary-green: #2d5016;
    --secondary-green: #8bc34a;
    --light-green: #f1f8e9;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: white !important;
    color: #333;
}

/* Force white background for all elements */
html, body, .container, .container-fluid {
    background-color: white !important;
}

/* Override Bootstrap dark theme */
[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .container,
[data-bs-theme="dark"] .container-fluid {
    background-color: white !important;
    color: #333 !important;
}

/* Logo styling */
.logo {
    width: 40px;
    height: 40px;
}

/* Card styling */
.card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    color: #8bc34a;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Form elements */
.form-select, .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    font-size: 1rem;
}

.form-select:focus, .form-control:focus {
    border-color: #8bc34a;
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25);
}

.btn-success {
    background-color: #8bc34a;
    border-color: #8bc34a;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #7cb342;
    border-color: #7cb342;
    transform: translateY(-2px);
}

/* Weather section styling */
.current-weather {
    margin-bottom: 20px;
}

.weather-icon img {
    width: 80px;
    height: 80px;
}

.temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
}

.description {
    font-size: 1.1rem;
    color: #555;
}

.weather-details {
    font-size: 0.9rem;
    color: #666;
}

/* Forecast styling */
.forecast-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.forecast-day {
    min-width: 90px;
    padding: 10px;
    border-radius: 10px;
    background-color: #f8f9fa;
}

/* Advice section styling */
.advice-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .temp {
        font-size: 2rem;
    }
    
    .forecast-day {
        min-width: 80px;
    }
}

/* Footer styling */
footer {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Animation for loading state */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Alert styling */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}
