/* ==========================================================
   AAROGYAM INDIA - MANDI & WEATHER DASHBOARD FINAL CSS
   ========================================================== */

.mandi-dashboard-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px 95px 15px;
    font-family: 'Poppins', sans-serif;
    color: #f8fafc;
    background-color: transparent;
    box-sizing: border-box;
}

/* Glassmorphism Weather Box */
.weather-glass-box {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95), rgba(4, 120, 87, 0.9));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 22px 25px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), 0 5px 15px rgba(16, 185, 129, 0.2);
}

.weather-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 12px;
    margin-bottom: 15px;
    color: #e2e8f0;
}

.live-datetime {
    font-weight: 500;
    color: #f1f5f9;
}

.weather-city-search-inline {
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,0.25);
    padding: 3px 8px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.3);
}

.weather-city-search-inline input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px 8px;
    font-size: 0.88rem;
    outline: none;
}

.weather-city-search-inline input::placeholder {
    color: rgba(255,255,255,0.7);
}

.weather-city-search-inline button {
    background: #10B981;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.weather-city-search-inline button:hover {
    background: #059669;
}

.sun-timings {
    display: flex;
    gap: 15px;
}

.sun-timings span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.weather-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.weather-left-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.weather-left-info img {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 5px;
}

.weather-left-info h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #fff;
}

.weather-left-info p {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    color: #a7f3d0;
    text-transform: capitalize;
}

.temp-highlight {
    font-size: 2.6rem;
    font-weight: 800;
    color: #facc15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Floating Clouds Animation */
.cloud {
    position: absolute;
    color: rgba(255, 255, 255, 0.25);
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 1;
    animation: floatCloudAnim linear infinite;
}

.cloud-1 { top: 10px; left: -10%; animation-duration: 25s; }
.cloud-2 { bottom: 5px; left: -20%; animation-duration: 18s; animation-delay: 5s; }

@keyframes floatCloudAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(130vw); }
}

/* Mandi Control Card Hub */
.mandi-control-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mandi-card-title h2 {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 5px 0;
}

.mandi-card-title p {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0 0 20px 0;
}

.filters-grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-group-item select, 
.form-group-item input {
    width: 100%;
    padding: 11px 14px;
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    box-sizing: border-box;
}

.form-group-item select option {
    background-color: #0f172a;
    color: #fff;
}

.form-group-item select:focus, 
.form-group-item input:focus {
    border-color: #10B981;
}

.mandi-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mandi-action-buttons button {
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-reset { background: #64748b; color: #fff; }
.btn-preview { background: #f59e0b; color: #0f172a; }
.btn-download { background: #10B981; color: #fff; }

.mandi-action-buttons button:hover { 
    opacity: 0.95; 
    transform: translateY(-2px); 
    filter: brightness(1.1);
}

/* --- ABSOLUTE PERFECT TABLE CSS (Grid Columns Matched & Visible Text) --- */
.mandi-results-wrapper {
    background: #1e293b;
    border-radius: 14px;
    border: 1px solid #334155;
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.table-head-row, 
.table-data-row {
    display: grid !important;
    grid-template-columns: 1.3fr 1.3fr 1.1fr 1fr 1fr 1.4fr !important;
    gap: 12px !important;
    padding: 14px 18px !important;
    align-items: center !important;
    min-width: 950px !important;
    box-sizing: border-box !important;
}

.table-head-row {
    background: #0f172a !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #38bdf8 !important;
    border-bottom: 1px solid #334155 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
}

.table-body-container {
    max-height: 500px !important;
    overflow-y: auto !important;
    min-width: 950px !important;
    background: #1e293b !important;
}

.table-data-row {
    border-bottom: 1px solid rgba(51, 65, 85, 0.4) !important;
    font-size: 0.9rem !important;
    color: #ffffff !important;
    background-color: #1e293b !important;
    font-weight: 500 !important;
    transition: background 0.2s ease;
}

.table-data-row div {
    word-break: break-word !important;
    overflow: hidden !important;
    color: #ffffff !important;
}

.table-data-row:hover {
    background: rgba(30, 41, 59, 0.95) !important;
}

.mandi-placeholder-box {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Govt Disclaimer Box */
.govt-disclaimer-box {
    margin-top: 25px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 16px 20px;
}

.govt-emblem-flex {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.govt-emblem-flex strong {
    font-size: 0.92rem;
    color: #facc15;
    display: block;
    margin-bottom: 3px;
}

.govt-emblem-flex p {
    margin: 0;
    font-size: 0.84rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f172a;
    border-top: 1px solid #334155;
    z-index: 99995;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.4);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    text-decoration: none;
    gap: 3px;
    cursor: pointer;
    transition: color 0.2s;
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
    color: #10B981;
}

@media (max-width: 992px) {
    .mobile-bottom-nav { display: flex; }
    .mandi-dashboard-wrapper { padding-bottom: 95px; }
}

@media (max-width: 768px) {
    .weather-top-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sun-timings {
        width: 100%;
        justify-content: space-between;
    }
}