/* ===================================================
   Kisan - Tunhar Token (Web Portal) Stylesheet
   Theme: Official CG Government / Modern Agriculture Portal
   =================================================== */

:root {
    --primary: #1b6d39;          /* Deep Agriculture Green */
    --primary-dark: #124c27;     /* Darker Shade */
    --primary-light: #e8f5e9;    /* Light Green Tint */
    --secondary: #1a365d;        /* Deep Navy Blue */
    --accent-orange: #d97706;    /* Amber/Orange Highlight */
    --accent-gold: #f59e0b;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --success: #15803d;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-light: #6b7280;
    --bg-main: #f3f6f4;
    --bg-card: #ffffff;
    --border-color: #d1d5db;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* Keep vertical scrollbar track stable to prevent horizontal layout jerk */
    scrollbar-gutter: stable;
}

body {
    font-family: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Top Strip */
.top-strip {
    background-color: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent-orange);
}

.strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.strip-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-year {
    background: #1e293b;
    padding: 2px 10px;
    border-radius: 20px;
    color: #fbbf24;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.helpline {
    color: #f1f5f9;
    font-weight: 600;
}

/* 2. Main Header */
.main-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo.cg-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.portal-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.portal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo.nic-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.app-version-badge {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot-online {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

/* 3. Navigation Bar */
.portal-nav {
    background-color: var(--primary);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-tab:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-tab.active {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--accent-gold);
}

/* 4. Main Content Layout */
.main-content {
    flex: 1;
    padding-top: 25px;
    padding-bottom: 40px;
    min-height: calc(100vh - 260px); /* Keeps footer firmly anchored at bottom without sudden jumps */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 5. Home Tab Components */
.hero-card {
    background: linear-gradient(135deg, #1b6d39 0%, #104925 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-info {
    max-width: 650px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: rgba(251, 191, 36, 0.2);
    color: #fef08a;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.hero-info h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
}

.hero-info p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.hl-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.hl-item i {
    color: #a7f3d0;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-graphic {
    z-index: 1;
}

.hero-img {
    max-height: 220px;
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.section-title {
    margin-bottom: 18px;
}

.section-title h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 700;
}

.section-title p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.service-icon img {
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
}

.green-bg { background-color: #dcfce7; }
.orange-bg { background-color: #ffedd5; }
.blue-bg { background-color: #e0f2fe; }
.red-bg { background-color: #fee2e2; }

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 14px;
}

.link-arrow {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Info Box Grid */
.info-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: #fff7ed;
    color: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-text h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* 6. Universal Card Styles */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 20px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-header {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-icon-img {
    height: 38px;
    width: 38px;
    object-fit: contain;
}

.card-icon-font {
    font-size: 2rem;
}

.danger-icon {
    color: var(--danger);
}

.card-title-group h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
}

.card-title-group p {
    font-size: 0.88rem;
    color: var(--text-light);
}

.step-indicator {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.card-body {
    padding: 28px;
}

/* 7. Forms & Inputs */
.search-box-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.input-with-button {
    display: flex;
    gap: 10px;
    position: relative;
}

.input-prefix-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 109, 57, 0.15);
}

.form-control-lg {
    font-size: 1.25rem;
    padding: 12px 16px;
    font-weight: 700;
}

.demo-hints {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.demo-hints a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.demo-hints a:hover {
    text-decoration: underline;
}

/* Farmer Profile Card inside apply tab */
.farmer-profile-container {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 22px;
    animation: fadeIn 0.3s ease;
}

.profile-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-main-data {
    display: flex;
    align-items: center;
    gap: 16px;
}

.farmer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    background: #f1f5f9;
}

.profile-main-data h4 {
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 800;
}

.farmer-meta {
    display: flex;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.status-pill.verified {
    background: #dcfce7;
    color: #15803d;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #bbf7d0;
}

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

.grid-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.cell-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.grid-cell strong {
    font-size: 1rem;
    color: var(--text-main);
}

.highlight-cell {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.success-cell {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.success-cell strong {
    color: var(--success);
    font-size: 1.15rem;
}

.form-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
}

.sub-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

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

.form-group select.form-control,
.form-group input.form-control {
    padding-left: 14px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fffbeb;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #fef3c7;
    margin-bottom: 24px;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.terms-checkbox label {
    font-size: 0.9rem;
    color: #78350f;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

/* 8. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 1.05rem;
}

/* 9. Printable Token Slip / Receipt */
.receipt-container {
    margin-top: 20px;
}

.slip-card {
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
    background-image: radial-gradient(#f1f5f9 1px, transparent 1px);
    background-size: 20px 20px;
}

.slip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.slip-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.slip-logo.nic {
    height: 38px;
}

.slip-title-area {
    text-align: center;
    flex-grow: 1;
    padding: 0 16px;
}

.slip-title-area h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.slip-title-area h5 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin: 3px 0;
}

.slip-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slip-meta-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.slip-token-number span {
    color: #fbbf24;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.status-active {
    background: #22c55e;
    color: #052e16;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
}

.slip-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    background: #ffffff;
}

.slip-table td {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    font-size: 0.95rem;
}

.col-lbl {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    width: 20%;
}

.col-val {
    color: #0f172a;
    font-weight: 700;
    width: 30%;
}

.highlight-row {
    background-color: #fefce8;
}

.highlight-row td {
    border-top: 2px solid #facc15;
    border-bottom: 2px solid #facc15;
}

.text-danger { color: #b91c1c !important; }
.text-success { color: #15803d !important; }
.text-primary { color: var(--primary) !important; }

.slip-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px dashed #94a3b8;
    padding-top: 14px;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 4px;
}

.mock-qr {
    color: #0f172a;
    padding: 4px;
}

.qr-caption {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 4px;
}

.slip-instructions h6 {
    font-size: 0.85rem;
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 4px;
}

.slip-instructions ul {
    list-style-position: inside;
    font-size: 0.82rem;
    color: #475569;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

/* 10. Cancel & Alerts */
.cancel-warning-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: #991b1b;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.cancel-warning-box i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.alert-box {
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-top: 16px;
    animation: fadeIn 0.3s;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #14532d;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

/* 11. Calculator Components */
.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.unit-selector {
    display: flex;
    gap: 24px;
    background: #f8fafc;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.unit-selector label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.calc-results-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #86efac;
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-results-card h4 {
    color: var(--secondary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #cbd5e1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.total-money-item {
    border-bottom: none;
    background: #ffffff;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.total-money-item .stat-value {
    font-size: 1.6rem;
}

.calc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 14px;
}

/* 12. Instructions & Guidelines */
.guidelines-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
}

.guide-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-item h5 {
    font-size: 1.05rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 4px;
}

.guide-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.helpline-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
}

.hl-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hl-content p {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-badges .badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 13. Footer */
.portal-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0 20px;
    margin-top: auto;
    border-top: 3px solid var(--primary);
    contain: layout style;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 500px;
}

.footer-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.footer-left h5 {
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-left p {
    font-size: 0.82rem;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.footer-nic {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.nic-footer-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.copyright {
    font-size: 0.78rem;
    color: #64748b;
}

/* 14. Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* 15. Print Stylesheet */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-slip, #printable-slip * {
        visibility: visible;
    }
    #printable-slip {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: 1px solid #000;
        box-shadow: none;
        padding: 20px;
    }
    .receipt-actions, .portal-nav, .top-strip, .main-header, .portal-footer {
        display: none !important;
    }
}

/* 16. Responsive Breakpoints */
@media (max-width: 900px) {
    .hero-card {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    .hero-highlights {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-img {
        max-height: 160px;
        margin-top: 20px;
    }
    .header-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .brand-area {
        flex-direction: column;
        gap: 8px;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
    }
    .footer-right {
        align-items: center;
    }
}

/* ===================================================
   17. Find Kisan Code (बस्तर जिला सर्च) Styles
   =================================================== */

.nav-tab-highlight {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35)) !important;
    border-bottom: 3px solid var(--accent-gold) !important;
    color: #fef08a !important;
}
.nav-tab-highlight:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(217, 119, 6, 0.5)) !important;
    color: #ffffff !important;
}

.find-code-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Section Header Box */
.section-header-box {
    background: linear-gradient(135deg, #164e2a 0%, #064e3b 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sh-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sh-left .icon-circle {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fbbf24;
    border: 2px solid rgba(251, 191, 36, 0.4);
}

.sh-left h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.sh-left p {
    color: #d1fae5;
    font-size: 0.95rem;
}

.sh-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.badge-district {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-stats {
    background: #f59e0b;
    color: #0f172a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Filter Card */
.filter-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group.flex-2 {
    flex: 2;
    min-width: 320px;
}

.filter-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.filter-group .form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(27, 109, 57, 0.15);
    outline: none;
}

/* Search Row */
.search-row {
    display: flex;
    gap: 12px;
}

.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-input-wrap .search-input {
    width: 100%;
    padding: 13px 40px 13px 42px;
    border: 2px solid #cbd5e1;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.search-input-wrap .search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 109, 57, 0.2);
    outline: none;
}

.btn-clear-search {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    display: none;
}
.btn-clear-search:hover {
    color: #ef4444;
}

.quick-hints {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pill-hint {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 0.84rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.pill-hint:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Result Bar */
.result-bar {
    background: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.rb-left {
    font-size: 1rem;
    color: var(--text-main);
}

.rb-left span#fc-match-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.15rem;
}

.rb-filter-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 6px;
}

.info-tag {
    font-size: 0.85rem;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Table Card */
.table-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 420px; /* Keeps container rock solid so footer never jumps */
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    min-height: 360px;
}

.farmer-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
}

.farmer-data-table thead {
    background: #0f172a;
    color: #f8fafc;
}

.farmer-data-table th {
    padding: 14px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--primary);
}

.farmer-data-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s;
}

.farmer-data-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.farmer-data-table tbody tr:hover {
    background: #f0fdf4;
}

.farmer-data-table td {
    padding: 12px 16px;
    vertical-align: middle;
}

/* Badges and cell styles */
.badge-kramank {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid #c7d2fe;
}

.code-cell-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-badge {
    font-family: 'Consolas', 'Courier New', monospace;
    font-weight: 700;
    color: #065f46;
    background: #d1fae5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.95rem;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.5px;
}

.farmer-name-text {
    font-weight: 600;
    color: #0f172a;
}

.father-name-text {
    color: var(--text-muted);
}

.center-badge {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #475569;
}

.paddy-text {
    font-weight: 600;
    color: var(--primary);
}

/* Actions in Table */
.action-cell {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.btn-action-copy {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-action-copy:hover {
    background: #f1f5f9;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-action-copy-full {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 6px 14px;
    font-size: 0.85rem;
    box-shadow: 0 1px 2px rgba(22, 101, 52, 0.08);
}

.btn-action-copy-full:hover {
    background: #166534;
    color: #ffffff;
    border-color: #166534;
    box-shadow: 0 2px 6px rgba(22, 101, 52, 0.25);
}

.btn-action-token {
    background: var(--primary);
    border: none;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-action-token:hover {
    background: var(--primary-dark);
}

/* Pagination Footer */
.pagination-footer {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.page-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.page-buttons {
    display: flex;
    gap: 8px;
}

/* Empty State in Table */
.table-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}

.table-empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.table-empty-state h4 {
    font-size: 1.15rem;
    color: #334155;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .section-header-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .sh-right {
        align-items: flex-start;
        width: 100%;
    }
    .filter-row {
        flex-direction: column;
    }
    .search-row {
        flex-direction: column;
    }
    .search-row .btn {
        width: 100%;
    }
}

/* ===================================================
   PADDY WEATHER GUARD (धान सुरक्षा व स्थानीय मौसम अलर्ट)
   =================================================== */

.weather-guard-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin: 24px 0 32px 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.weather-guard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #3b82f6 100%);
}

.wg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.wg-title-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 650px;
}

.wg-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #047857);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
}

.wg-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.wg-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.3px;
}

.wg-live-pill .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wg-source-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
}

.wg-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.wg-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.wg-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-wg-gps {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wg-gps:hover {
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25);
}

.wg-district-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wg-district-select-wrap .select-pin-icon {
    position: absolute;
    left: 10px;
    color: #d97706;
    font-size: 0.85rem;
    pointer-events: none;
}

.wg-select {
    padding: 7px 12px 7px 28px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-weight: 500;
    cursor: pointer;
    min-width: 170px;
    transition: border-color 0.2s ease;
}

.wg-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 109, 57, 0.15);
}

.btn-wg-refresh {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wg-refresh:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-wg-refresh.spinning i {
    animation: fa-spin 1s infinite linear;
}

/* Alert Banners */
.wg-alert-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.wg-alert-banner.alert-safe {
    background-color: #f0fdf4;
    border-left-color: #10b981;
    border: 1px solid #bbf7d0;
    border-left-width: 5px;
}

.wg-alert-banner.alert-safe .wg-alert-icon {
    color: #10b981;
    font-size: 1.8rem;
}

.wg-alert-banner.alert-safe h4 {
    color: #065f46;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wg-alert-banner.alert-safe p {
    color: #047857;
    font-size: 0.9rem;
    margin: 0;
}

.wg-alert-banner.alert-warning {
    background-color: #fffbeb;
    border-left-color: #f59e0b;
    border: 1px solid #fde68a;
    border-left-width: 5px;
}

.wg-alert-banner.alert-warning .wg-alert-icon {
    color: #d97706;
    font-size: 1.8rem;
}

.wg-alert-banner.alert-warning h4 {
    color: #92400e;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wg-alert-banner.alert-warning p {
    color: #b45309;
    font-size: 0.9rem;
    margin: 0;
}

.wg-alert-banner.alert-danger {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    border: 1px solid #fecaca;
    border-left-width: 5px;
}

.wg-alert-banner.alert-danger .wg-alert-icon {
    color: #dc2626;
    font-size: 1.8rem;
}

.wg-alert-banner.alert-danger h4 {
    color: #991b1b;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.wg-alert-banner.alert-danger p {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0;
}

.wg-alert-content {
    flex: 1;
}

.wg-tarpaulin-badge {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.wg-tarpaulin-badge.safe-mode {
    background: #15803d;
    box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
}

/* Metrics Grid */
.wg-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.wg-metric-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.wg-metric-box:hover {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.wg-m-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wg-m-icon.text-temp {
    background: #fff1f2;
    color: #e11d48;
}

.wg-m-icon.text-rain {
    background: #eff6ff;
    color: #2563eb;
}

.wg-m-icon.text-humidity {
    background: #ecfeff;
    color: #0891b2;
}

.wg-m-icon.text-wind {
    background: #f0fdf4;
    color: #16a34a;
}

.wg-m-info {
    display: flex;
    flex-direction: column;
}

.wg-m-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.wg-m-val {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.wg-m-sub {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* 10-Day Paddy Forecast Strip */
.wg-forecast-section {
    background: #fdfefe;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.wg-forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 14px;
}

.wg-fh-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wg-fh-title {
    font-weight: 700;
    color: var(--secondary);
}

.wg-forecast-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wg-forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    min-height: 160px; /* Reserves space to prevent page shift before weather loads */
}

.wg-f-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.wg-f-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
    transform: translateY(-2px);
}

.wg-f-card.today-card {
    border: 2px solid #10b981;
    background: #f9fefb;
}

.wg-f-card.rain-alert-card {
    border: 2px solid #ef4444;
    background: #fffafa;
}

.wg-fc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.wg-fc-day {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
}

.wg-fc-day.today-tag {
    color: #047857;
}

.wg-fc-date {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.wg-fc-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 0;
    gap: 3px;
}

.wg-fc-icon {
    font-size: 1.55rem;
    margin-bottom: 2px;
}

.wg-fc-temp {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.wg-fc-cond {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.2;
}

.wg-fc-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 6px;
}

.wg-f-rain-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wg-f-rain-low {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.wg-f-rain-med {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.wg-f-rain-high {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.wg-f-status-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.wg-f-status-pill.status-safe {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wg-f-status-pill.status-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.wg-f-status-pill.status-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer Tips */
.wg-footer-tips {
    background: #f0fdf4;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wg-footer-tips .tip-label {
    font-weight: 700;
    color: #14532d;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.wg-footer-tips .tip-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Weather note in token form */
.token-weather-note {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.token-weather-note.note-safe {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.token-weather-note.note-warn {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Responsive adjustments for Weather Guard */
@media (max-width: 1100px) {
    .wg-forecast-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .wg-header {
        flex-direction: column;
        align-items: stretch;
    }
    .wg-actions {
        width: 100%;
        justify-content: space-between;
    }
    .wg-actions .btn-wg-gps {
        flex: 1;
        justify-content: center;
    }
    .wg-district-select-wrap {
        flex: 1.5;
    }
    .wg-select {
        width: 100%;
        min-width: 0;
    }
    .wg-metrics-grid {
        grid-template-columns: 1fr;
    }
    .wg-alert-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .wg-tarpaulin-badge {
        align-self: flex-start;
    }
    .wg-forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wg-forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================
   KISAN FORMS, AFFIDAVITS, SCHEMES & ID CARD STYLES
   =================================================== */

.forms-subnav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.btn-subnav {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-subnav:hover {
    background: #e2e8f0;
    color: var(--primary);
}

.btn-subnav.active {
    background: #166534;
    color: #ffffff;
    border-color: #166534;
    box-shadow: 0 4px 10px rgba(22, 101, 52, 0.25);
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Document Previews (Paper look) */
.affidavit-preview-card, .grievance-preview-card, .dbt-preview-card {
    background: #ffffff;
    border: 2px solid #0f172a;
    border-radius: var(--radius-sm);
    padding: 28px 32px;
    margin-top: 24px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    font-family: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    line-height: 1.8;
    color: #0f172a;
    position: relative;
}

.doc-official-header {
    text-align: center;
    border-bottom: 2px solid #334155;
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.doc-official-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.doc-official-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.doc-subject-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 10px 14px;
    margin: 16px 0;
    font-weight: 700;
    font-size: 1rem;
}

.doc-body-text {
    font-size: 0.95rem;
    text-align: justify;
    margin-bottom: 16px;
}

.doc-signatures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #94a3b8;
    text-align: center;
}

.doc-sig-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #334155;
}

.doc-sig-line {
    width: 140px;
    border-bottom: 1px solid #334155;
    margin-bottom: 4px;
    height: 30px;
}

/* Helpline Banner */
.helpline-strip-bar {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hl-badge-title {
    font-weight: 700;
    color: #991b1b;
    font-size: 0.9rem;
}

.btn-tel-pill {
    background: #ffffff;
    border: 1px solid #f87171;
    color: #b91c1c;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-tel-pill:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Solar Results Grid */
.solar-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.solar-res-box {
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.solar-res-box .sr-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.solar-res-box h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
}

.solar-res-box.box-subsidy h3 {
    color: #059669;
}

.solar-res-box.highlight-farmer {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 2px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.solar-res-box.highlight-farmer h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #047857;
}

.solar-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.solar-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 18px;
}

.solar-card-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solar-card-item ul {
    padding-left: 20px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.8;
}

/* DBT Styles */
.dbt-diagnostic-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ddb-icon {
    font-size: 2.2rem;
    color: #2563eb;
}

.dbt-diagnostic-banner h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.dbt-reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.dbt-reason-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
}

.dbt-step-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    text-align: center;
    line-height: 26px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.dbt-reason-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.dbt-reason-card p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
}

.dbt-links-bar {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-dbt-portal {
    background: #ffffff;
    border: 1px solid #93c5fd;
    color: #1d4ed8;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-dbt-portal:hover {
    background: #1d4ed8;
    color: #ffffff;
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.kisan-card-dialog {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title-wrap h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.btn-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0 4px;
}

.modal-body {
    padding: 20px;
    background: #f1f5f9;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #ffffff;
}

/* The PVC Smart Kisan Card Layout */
.kisan-id-card-wrapper {
    background: #ffffff;
    border-radius: 14px;
    border: 3px solid #166534;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
}

.kic-top-stripe {
    background: linear-gradient(135deg, #14532d 0%, #166534 50%, #047857 100%);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 3px solid #f59e0b;
}

.kic-logo, .kic-nic-logo {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.kic-header-text {
    text-align: center;
    flex: 1;
}

.kic-header-text h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.kic-header-text h5 {
    font-size: 0.78rem;
    font-weight: 500;
    color: #fef08a;
    margin: 2px 0;
}

.kic-season {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.25);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.kic-card-body {
    padding: 16px 18px;
    display: flex;
    gap: 16px;
    background: #ffffff url('assets/cg_logo_n.png') no-repeat center center;
    background-size: 180px;
    background-blend-mode: overlay;
}

.kic-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100px;
    flex-shrink: 0;
}

.kic-avatar-box {
    width: 80px;
    height: 90px;
    border: 2px solid #166534;
    border-radius: 8px;
    background: #f0fdf4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #166534;
}

.kic-verified-badge {
    background: #15803d;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.kic-qr-wrap {
    width: 80px;
    height: 80px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 3px;
    background: #ffffff;
    margin-top: 4px;
}

.kic-qr-wrap img {
    width: 100%;
    height: 100%;
    display: block;
}

.kic-details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kic-field-hero {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 6px;
}

.kic-farmer-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.kic-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    display: block;
}

.kic-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}

.kic-field strong {
    font-size: 0.88rem;
    color: #1e293b;
    display: block;
    word-break: break-word;
}

.kic-code-text {
    color: #1d4ed8 !important;
    font-family: monospace;
    font-size: 0.95rem !important;
}

.kic-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 6px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #475569;
    font-weight: 500;
}

.kic-helpline {
    font-weight: 700;
    color: #166534;
}

/* Table Button for Kisan Card */
.btn-action-kisan-card {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.btn-action-kisan-card:hover {
    background: #d97706;
    color: #ffffff;
    border-color: #d97706;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .solar-results-grid {
        grid-template-columns: 1fr;
    }
    .dbt-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .solar-info-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .forms-subnav {
        flex-direction: column;
    }
    .dbt-reasons-grid {
        grid-template-columns: 1fr;
    }
    .doc-signatures-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .kic-card-body {
        flex-direction: column;
        align-items: center;
    }
    .kic-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   🌾 Digital Kisan Seva & Legal Disclaimer Elements
======================================================== */
.kisan-seva-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1.5px solid #16a34a;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}

.badge-paddy-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.footer-paddy-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.ksb-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ksb-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.ksb-title {
    font-size: 13px;
    font-weight: 800;
    color: #15803d;
}

.ksb-sub {
    font-size: 10.5px;
    font-weight: 600;
    color: #b45309;
}

.slip-helper-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.kic-helper-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.footer-disclaimer-row {
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

.disclaimer-card {
    background: rgba(254, 252, 232, 0.95);
    border: 1px solid #fde047;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #713f12;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.disclaimer-card i {
    font-size: 18px;
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
}

.disclaimer-card a {
    color: #15803d;
    font-weight: 700;
    text-decoration: underline;
}

.footer-helper-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fde047;
    font-size: 13px;
    font-weight: 700;
}




