/* Professional Dashboard Styles - Premium Design */

/* Ensure consistent layout across all pages */
.dashboard-body {
    display: flex !important;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f5 50%, #f0f4f8 100%);
    background-attachment: fixed;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Hide any conflicting header/nav elements from style.css */
body.dashboard-body>header:not(.top-bar),
body.dashboard-body>nav:not(.sidebar-nav) {
    display: none !important;
}

/* Force consistent sidebar on all pages - override any conflicting styles */
body.dashboard-body .sidebar,
body.dashboard-body aside.sidebar,
.sidebar {
    width: 280px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure sidebar header is consistent */
body.dashboard-body .sidebar-header,
.sidebar-header {
    padding: 2rem 1.5rem !important;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #2c5f2d 100%) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(44, 95, 45, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Ensure sidebar nav is consistent */
body.dashboard-body .sidebar-nav,
.sidebar-nav {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.5rem 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    gap: 0.25rem !important;
}

/* Ensure nav items are consistent */
body.dashboard-body .nav-item,
.sidebar-nav .nav-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
    margin: 0.25rem 1rem !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 14px !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: hidden !important;
    font-size: 0.95rem !important;
    width: calc(100% - 2rem) !important;
    box-sizing: border-box !important;
}

/* Ensure sidebar footer is consistent */
body.dashboard-body .sidebar-footer,
.sidebar-footer {
    padding: 1.5rem !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(10px) !important;
}

/* Force consistent main content margin on all pages */
body.dashboard-body .main-content,
body.dashboard-body main.main-content,
main.main-content {
    flex: 1 !important;
    margin-left: 280px !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    transition: margin-left 0.3s ease !important;
    width: calc(100% - 280px) !important;
}

/* Ensure top-bar is consistent */
body.dashboard-body .top-bar,
.top-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06) !important;
    padding: 1.75rem 2.5rem !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Override any header styles that might conflict */
body.dashboard-body header:not(.top-bar),
body.dashboard-body>header {
    display: none !important;
}

/* Premium Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #2c5f2d 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(44, 95, 45, 0.25);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.logo-sidebar {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

.logo-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 0.25rem;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 0.25rem 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    width: calc(100% - 2rem);
    box-sizing: border-box;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2c5f2d 0%, #97bc62 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-item:hover {
    background: linear-gradient(90deg, rgba(44, 95, 45, 0.1) 0%, rgba(44, 95, 45, 0.05) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(44, 95, 45, 0.15) 0%, rgba(44, 95, 45, 0.08) 100%);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.15);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.35rem;
    width: 28px;
    text-align: center;
    filter: grayscale(0.4);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
    filter: grayscale(0);
    transform: scale(1.15);
}

.nav-text {
    flex: 1;
    font-size: 0.95rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.lang-toggle-sidebar {
    display: flex;
    gap: 0.5rem;
    background: #f0f4f8;
    padding: 0.3rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lang-toggle-sidebar .lang-btn {
    flex: 1;
    padding: 0.65rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.lang-toggle-sidebar .lang-btn.active {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.35);
    transform: scale(1.05);
}

.lang-toggle-sidebar .lang-btn:hover:not(.active) {
    background: rgba(44, 95, 45, 0.1);
    color: var(--primary-color);
}

/* Premium Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.top-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    padding: 1.75rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-size: 2.1rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #97bc62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.top-bar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-icon {
    background: #f0f4f8;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #4a5568;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-icon:hover {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 100%);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(44, 95, 45, 0.35);
}

/* Premium Dashboard Container */
.dashboard-container {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.dashboard-section {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.dashboard-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #1a202c;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #718096;
    margin-top: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 650px;
    font-weight: 400;
}

/* Premium Advisories Grid */
.advisories-grid {
    display: grid;
    gap: 2rem;
}

.advisory-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.advisory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #2c5f2d 0%, #97bc62 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.advisory-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
    border-color: rgba(44, 95, 45, 0.2);
}

.advisory-card:hover::before {
    transform: scaleY(1);
}

/* Advisory Card Header */
.advisory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2.5rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid #f0f4f8;
    position: relative;
}

.advisory-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.advisory-crop-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2c5f2d 0%, #97bc62 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.25);
}

.advisory-crop-info {
    flex: 1;
}

.advisory-crop {
    font-size: 1.65rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #97bc62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.advisory-date {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.advisory-date::before {
    content: '📅';
    font-size: 1rem;
    opacity: 0.8;
}

.advisory-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Premium Risk Badge */
.risk-badge {
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
}

.risk-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.risk-low {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid rgba(21, 87, 36, 0.2);
}

.risk-moderate {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid rgba(133, 100, 4, 0.2);
}

.risk-high {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid rgba(114, 28, 36, 0.2);
}

.risk-critical {
    background: linear-gradient(135deg, #f5c6cb 0%, #f1aeb5 100%);
    color: #721c24;
    border: 1px solid rgba(114, 28, 36, 0.3);
    animation: pulse-critical 2s ease-in-out infinite;
}

@keyframes pulse-critical {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(114, 28, 36, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(114, 28, 36, 0.4);
    }
}

/* Advisory Content */
.advisory-content {
    padding: 2rem 2.5rem;
}

.advisory-message {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 500;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border-left: 4px solid #2c5f2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Premium Meta Grid */
.advisory-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f4f8;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.meta-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2c5f2d 0%, #97bc62 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.meta-item:hover {
    background: linear-gradient(135deg, rgba(44, 95, 45, 0.05) 0%, #ffffff 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(44, 95, 45, 0.15);
}

.meta-item:hover::before {
    transform: scaleX(1);
}

.meta-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.meta-value {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2c5f2d 0%, #97bc62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* Action Buttons in Advisory Card */
.advisory-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 2.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-btn:hover {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 100%);
    color: white;
    border-color: #2c5f2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 95, 45, 0.25);
}

/* Premium Buttons */
.btn {
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #97bc62 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(44, 95, 45, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    background: white;
    border: 2px solid #2c5f2d;
    color: #2c5f2d;
    box-shadow: 0 2px 8px rgba(44, 95, 45, 0.15);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.3);
}

.btn-sm {
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
}

.btn-block {
    width: 100%;
}

/* Enhanced Ask Advice Section */
.ask-advice-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.ask-advice-form .form-group {
    margin-bottom: 1.75rem;
}

.ask-advice-form .form-label {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    display: block;
}

.ask-advice-form .form-control {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.ask-advice-form .form-control:focus {
    outline: none;
    border-color: #2c5f2d;
    box-shadow: 0 0 0 4px rgba(44, 95, 45, 0.1);
    background: white;
    transform: translateY(-2px);
}

.ask-advice-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #718096;
}

.advice-response {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border-left: 5px solid #2c5f2d;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(44, 95, 45, 0.1);
}

.response-header h3 {
    margin: 0;
    color: #2c5f2d;
    font-size: 1.5rem;
    font-weight: 900;
}

.response-content {
    line-height: 1.9;
    color: #2d3748;
    font-size: 1.1rem;
}

/* Enhanced Forecast Buttons */
.forecast-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.forecast-container {
    margin-top: 2rem;
}

/* Enhanced Video Tips Grid */
.video-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.video-tip-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.video-tip-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(225deg, rgba(44, 95, 45, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.video-tip-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-12px);
    border-color: rgba(44, 95, 45, 0.2);
}

.video-tip-card:hover::before {
    opacity: 1;
}

.video-thumbnail {
    position: relative;
    height: 220px;
    overflow: hidden;
    margin: 0;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-tip-card:hover .video-img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.play-overlay span {
    width: 64px;
    height: 64px;
    background: white;
    color: #2c5f2d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-tip-card:hover .play-overlay {
    background: rgba(44, 95, 45, 0.3);
    opacity: 1;
}

.video-tip-card:hover .play-overlay span {
    transform: scale(1.2);
    background: #2c5f2d;
    color: white;
}

.video-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.video-tip-card h3 {
    margin: 0 0 1rem;
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.video-tip-card p {
    color: #718096;
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
    flex: 1;
}

.video-tip-card .btn {
    align-self: flex-start;
    margin: 0;
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

/* Spinner */
.spinner {
    border: 4px solid #f0f4f8;
    border-top: 4px solid #2c5f2d;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-container {
        padding: 2rem;
    }

    .advisory-card {
        border-radius: 20px;
    }

    .video-tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Mobile Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    body.dashboard-body .sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    body.dashboard-body .sidebar.open {
        transform: translateX(0) !important;
    }

    body.dashboard-body .sidebar-overlay.active {
        display: block;
    }

    body.dashboard-body .main-content {
        margin-left: 0 !important;
    }

    .top-bar {
        padding: 1.25rem 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .dashboard-container {
        padding: 1.25rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .advisory-card {
        border-radius: 20px;
    }

    .advisory-header {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }

    .advisory-content {
        padding: 1.5rem;
    }

    .advisory-meta {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ask-advice-card {
        padding: 1.5rem;
    }

    .video-tips-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .forecast-buttons {
        grid-template-columns: 1fr;
    }

    /* Card adjustments for mobile */
    .card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .card-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .card-title {
        font-size: 1.35rem;
    }

    /* Hero section mobile */
    .hero {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    /* Form controls mobile */
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    /* Buttons mobile */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    /* Dashboard grid mobile */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Crop grid mobile */
    .crop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Steps grid mobile */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 1.25rem 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .dashboard-container {
        padding: 1rem;
    }

    .advisory-card {
        border-radius: 16px;
    }

    .advisory-header {
        padding: 1.25rem;
    }

    .advisory-crop {
        font-size: 1.4rem;
    }

    .advisory-message {
        font-size: 1.05rem;
        padding: 1.25rem;
    }

    .advisory-content {
        padding: 1.25rem;
    }

    .ask-advice-card {
        padding: 1.25rem;
    }

    .btn {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid rgba(44, 95, 45, 0.15);
    box-shadow: 0 8px 32px rgba(44, 95, 45, 0.12);
    animation: fadeInUp 0.6s ease;
}

.welcome-card .card-header {
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 100%);
    color: white;
    padding: 2rem 2.5rem;
    border-radius: 20px 20px 0 0;
    margin: 0;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.welcome-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.welcome-card .card-header h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.welcome-card>div:not(.card-header) {
    padding: 2.5rem;
    text-align: center;
}

.welcome-card p {
    font-size: 1.15rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 0;
}

.welcome-card .btn {
    margin-top: 1.5rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Enhanced Card Styles */
.card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-header {
    padding: 1.75rem 2rem;
    border-bottom: 2px solid #f0f4f8;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
    background: linear-gradient(135deg, #2c5f2d 0%, #3d7c3f 50%, #97bc62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Scrolling */
.dashboard-container {
    scroll-behavior: smooth;
}

/* Focus States */
*:focus {
    outline: 2px solid #2c5f2d;
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid #2c5f2d;
    outline-offset: 2px;
}