/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --bg: #f4f7fb;
    --white: #ffffff;
    --dark: #0b1220;
    --dark-2: #111827;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --green: #22c55e;
    --green-dark: #16a34a;
    --blue: #0ea5e9;
    --blue-dark: #0284c7;
    --danger-bg: #fee2e2;
    --danger-text: #dc2626;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius: 18px;
    --radius-sm: 12px;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.4;
}

/* =========================
   LOGIN PAGE
========================= */
.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(14,165,233,0.10), transparent 30%),
        #f1f5f9;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 560px;
    background: rgba(255,255,255,0.90);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226,232,240,0.9);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    padding: 34px 30px 30px;
}

.login-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34,197,94,0.18), rgba(14,165,233,0.16));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-dark);
    font-size: 34px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.login-card h1 {
    text-align: center;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--text);
    margin-bottom: 10px;
}

.login-card p {
    text-align: center;
    font-size: 19px;
    color: var(--muted);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-2);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d5dde7;
    background: #f8fafc;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: all 0.25s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.10);
}

.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--green-dark), #1fb981);
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px rgba(22,163,74,0.18);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(22,163,74,0.22);
}

.error-message {
    margin-bottom: 18px;
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

/* =========================
   DASHBOARD LAYOUT
========================= */
.layout,
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 280px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
        var(--dark);
    color: var(--white);
    padding: 20px 16px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
    box-shadow: 8px 0 30px rgba(2, 8, 23, 0.18);
    z-index: 1000;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.25);
    border-radius: 20px;
}

.logo-box {
    text-align: center;
    padding: 6px 8px 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-box img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    filter: drop-shadow(0 6px 16px rgba(14,165,233,0.18));
}

.logo-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.logo-box p {
    font-size: 13px;
    color: #94a3b8;
}

.menu {
    list-style: none;
    margin-top: 10px;
}

.menu li {
    margin-bottom: 8px;
}

.menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #aab8cf;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.28s ease;
    overflow: hidden;
}

.menu a i {
    font-size: 20px;
    min-width: 22px;
}

.menu a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
    transform: translateX(2px);
}

.menu a.active {
    color: var(--white);
    background: linear-gradient(90deg, rgba(34,197,94,0.20), rgba(14,165,233,0.18));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.menu a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--green), var(--blue));
}

/* =========================
   MAIN AREA
========================= */
.main,
.main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
    padding: 26px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px 24px;
    background:
        linear-gradient(135deg, rgba(34,197,94,0.10), rgba(14,165,233,0.08)),
        var(--white);
    border: 1px solid #e7edf5;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.topbar h1,
.page-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 4px;
}

.topbar p,
.page-subtitle {
    font-size: 15px;
    color: var(--muted);
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, rgba(34,197,94,0.10), rgba(14,165,233,0.10));
    color: var(--text);
    border: 1px solid #dbe7f1;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-chip i {
    font-size: 18px;
    color: var(--green-dark);
}

/* =========================
   STAT CARDS
========================= */
.cards,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.card,
.stat-card {
    position: relative;
    background: var(--white);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.25s ease;
}

.card::before,
.stat-card::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    width: 72px;
    height: 4px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card i,
.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(14,165,233,0.12));
    color: var(--green-dark);
    font-size: 26px;
    margin-bottom: 16px;
}

.card h2,
.stat-card h3 {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.card p,
.stat-card p {
    font-size: 15px;
    color: var(--muted);
    font-weight: 600;
}

/* =========================
   CONTENT BOXES
========================= */
.content-box,
.dashboard-panels {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.box,
.panel-card {
    background: var(--white);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.box h3,
.panel-card h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: -0.2px;
}

.box p,
.panel-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================
   QUICK ACTION BUTTONS
========================= */
.btn-grid,
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.btn-grid a,
.quick-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid #dfe8f1;
    border-radius: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 14px rgba(15,23,42,0.04);
}

.btn-grid a:hover,
.quick-links a:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--green-dark), var(--blue));
    border-color: transparent;
    transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
.footer,
.main-footer {
    background: var(--white);
    border: 1px solid #e6edf5;
    border-radius: 18px;
    padding: 16px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

/* =========================
   GENERIC TABLE / CONTENT SUPPORT
========================= */
.table-card {
    background: var(--white);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.table-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.table-wrap th {
    color: var(--text);
    font-weight: 700;
    background: #f8fafc;
}

.table-wrap td {
    color: var(--muted);
}

/* =========================
   BADGES
========================= */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: rgba(34,197,94,0.12);
    color: var(--green-dark);
}

.badge-info {
    background: rgba(14,165,233,0.12);
    color: var(--blue-dark);
}

.badge-danger {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
}

/* =========================
   FORM SUPPORT FOR INNER PAGES
========================= */
.form-card {
    background: var(--white);
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-card .form-group {
    margin-bottom: 18px;
}

.form-card .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.form-card .form-group input,
.form-card .form-group select,
.form-card .form-group textarea {
    width: 100%;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
    background: #f8fafc;
    min-height: 48px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

.form-card .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-card .form-group input:focus,
.form-card .form-group select:focus,
.form-card .form-group textarea:focus {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.10);
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--green-dark), var(--blue));
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 20px rgba(14,165,233,0.16);
}

.primary-btn:hover {
    transform: translateY(-1px);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
    .cards,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-box,
    .dashboard-panels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 240px;
    }

    .main,
    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding: 20px;
    }

    .topbar h1,
    .page-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .layout,
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding-bottom: 10px;
    }

    .main,
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .cards,
    .stats-grid,
    .btn-grid,
    .quick-links,
    .form-row {
        grid-template-columns: 1fr;
    }

    .logo-box img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .login-card h1 {
        font-size: 30px;
    }

    .login-card p {
        font-size: 16px;
    }

    .card,
    .stat-card,
    .box,
    .panel-card,
    .form-card,
    .table-card {
        border-radius: 18px;
        padding: 18px;
    }

    .topbar {
        border-radius: 18px;
    }
}

/* =========================================================
   COLLECTION DATA PREMIUM ENHANCEMENT (FINAL)
========================================================= */

/* FILTER PANEL */
.collection-panel{
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(14,165,233,0.05)), #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
}

.collection-panel-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
    padding-bottom:14px;
    border-bottom:1px solid var(--line);
}

.collection-panel-top h3{
    font-size:22px;
    font-weight:700;
    color:var(--text);
}

.collection-panel-top p{
    font-size:14px;
    color:var(--muted);
}

.collection-panel-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background: rgba(14,165,233,0.10);
    border:1px solid #dbe7f1;
    font-size:13px;
    font-weight:600;
}

/* FILTER GRID */
.collection-filter-grid{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:14px;
}

.collection-field label{
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
    display:block;
}

.collection-field select,
.collection-field input{
    height:44px;
    border:1px solid #d9e2ec;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
    background:#f8fafc;
}

.collection-field select:focus,
.collection-field input:focus{
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(14,165,233,0.10);
}

/* FILTER BUTTONS */
.collection-filter-actions{
    margin-top:18px;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

/* =========================================================
   TABLE PREMIUM UPGRADE
========================================================= */

.table-wrap{
    overflow-x:auto;
    border-radius:16px;
    border:1px solid var(--line);
}

/* horizontal scroll smooth */
.table-wrap::-webkit-scrollbar{
    height:10px;
}
.table-wrap::-webkit-scrollbar-thumb{
    background:#cbd5e1;
    border-radius:20px;
}

/* TABLE */
.table-wrap table{
    min-width:1800px;
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

/* HEADER */
.table-wrap th{
    position:sticky;
    top:0;
    z-index:2;
    background:linear-gradient(90deg, #0f172a, #1e293b);
    color:#ffffff;
    font-weight:600;
    font-size:13px;
    padding:14px 12px;
    white-space:nowrap;
}

/* DATA */
.table-wrap td{
    padding:12px 12px;
    font-size:13px;
    color:#334155;
    border-bottom:1px solid #edf2f7;
    white-space:nowrap;
}

/* ROW STYLE */
.table-wrap tbody tr:nth-child(even){
    background:#f8fbff;
}

.table-wrap tbody tr:hover{
    background:#eaf4ff;
    transition:0.2s;
}

/* ACTION BUTTONS */
.table-wrap .badge{
    font-size:12px;
    padding:5px 10px;
    border-radius:8px;
}

.table-wrap .badge-info{
    background:#e0f2fe;
    color:#0369a1;
}

.table-wrap .badge-danger{
    background:#fee2e2;
    color:#b91c1c;
}

/* =========================================================
   SMALL UI IMPROVEMENTS
========================================================= */

.table-header{
    margin-top:10px;
    margin-bottom:10px;
}

.table-title{
    font-size:18px;
    font-weight:700;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px){
    .collection-filter-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
    .collection-filter-grid{
        grid-template-columns: 1fr;
    }

    .collection-filter-actions{
        flex-direction:column;
    }

    .collection-filter-actions button,
    .collection-filter-actions a{
        width:100%;
    }
}

/* =====================================================
   ANALYSIS PAGE – PREMIUM UI
===================================================== */

/* FILTER CONTAINER */
.filter-container{
    background: linear-gradient(135deg,#ffffff,#f8fbff);
    border:1px solid #e2e8f0;
    border-radius:24px;
    padding:24px;
    margin-bottom:24px;
    box-shadow:0 12px 30px rgba(15,23,42,0.06);
}

/* FILTER HEADER */
.filter-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid #edf2f7;
}

.filter-header h3{
    font-size:20px;
    font-weight:700;
    color:#0f172a;
}

.filter-header p{
    font-size:13px;
    color:#64748b;
}

/* BADGE */
.filter-badge{
    background:linear-gradient(90deg,#dcfce7,#e0f2fe);
    padding:8px 14px;
    border-radius:999px;
    font-size:12px;
    font-weight:600;
}

/* GRID */
.filter-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
}

/* FIELD */
.filter-field label{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    font-weight:600;
    color:#0f172a;
}

.filter-field select,
.filter-field input{
    width:100%;
    height:46px;
    border-radius:12px;
    border:1px solid #d1d5db;
    padding:0 12px;
    font-size:14px;
    background:#f8fafc;
    transition:all 0.2s ease;
}

.filter-field select:focus,
.filter-field input:focus{
    background:#ffffff;
    border-color:#0ea5e9;
    box-shadow:0 0 0 3px rgba(14,165,233,0.10);
}

/* ACTION BUTTONS */
.filter-actions{
    margin-top:20px;
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.filter-actions button,
.filter-actions a{
    display:flex;
    align-items:center;
    gap:6px;
}

/* EXPORT BUTTON */
.export-btn{
    background:linear-gradient(90deg,#0ea5e9,#22c55e);
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:10px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s;
}

.export-btn:hover{
    transform:translateY(-1px);
}

/* =====================================================
   ANALYSIS GRID
===================================================== */

.analysis-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-bottom:20px;
}

/* CARD */
.analysis-card{
    background:linear-gradient(145deg,#ffffff,#f9fcff);
    border:1px solid #e2e8f0;
    border-radius:22px;
    padding:22px;
    box-shadow:0 12px 28px rgba(15,23,42,0.06);
    transition:all 0.3s ease;
}

.analysis-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 35px rgba(15,23,42,0.08);
}

/* FULL WIDTH */
.analysis-card.full-width{
    grid-column:span 2;
}

/* HEADER */
.card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}

.card-header h3{
    font-size:18px;
    font-weight:700;
    color:#0f172a;
}

.card-header span{
    font-size:12px;
    color:#64748b;
    background:#f1f5f9;
    padding:6px 10px;
    border-radius:8px;
}

/* CHART */
canvas{
    width:100% !important;
    height:320px !important;
}

/* =====================================================
   SMALL UI ENHANCEMENTS
===================================================== */

.analysis-card h3{
    margin-bottom:10px;
    font-weight:700;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width:1000px){

    .analysis-grid{
        grid-template-columns:1fr;
    }

    .analysis-card.full-width{
        grid-column:span 1;
    }

    .filter-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:600px){

    .filter-grid{
        grid-template-columns:1fr;
    }

    .filter-actions{
        flex-direction:column;
    }

    .filter-actions button,
    .filter-actions a{
        width:100%;
    }

    canvas{
        height:260px !important;
    }
}

/* =====================================================
   ADD PANCHAYAT DATA PAGE
===================================================== */

.panchayat-grid{
    display:grid;
    grid-template-columns:1.4fr 0.8fr;
    gap:20px;
    margin-bottom:22px;
}

.panchayat-card h3,
.upload-card h3{
    font-size:22px;
    font-weight:700;
    margin-bottom:18px;
    color:var(--text);
}

.upload-card p{
    color:var(--muted);
    font-size:14px;
    margin-bottom:12px;
    line-height:1.6;
}

.excel-format{
    background:linear-gradient(135deg,#f8fafc,#eef7ff);
    border:1px dashed #94a3b8;
    padding:14px;
    border-radius:14px;
    font-size:13px;
    font-weight:600;
    color:#334155;
    line-height:1.7;
    margin-bottom:18px;
}

.page-alert{
    padding:14px 16px;
    border-radius:14px;
    font-size:14px;
    font-weight:700;
    margin-bottom:18px;
}

.success-alert{
    background:rgba(34,197,94,0.12);
    border:1px solid rgba(34,197,94,0.25);
    color:var(--green-dark);
}

.error-alert{
    background:#fee2e2;
    border:1px solid #fecaca;
    color:#dc2626;
}

.secondary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 18px;
    border-radius:12px;
    background:#f1f5f9;
    color:#0f172a;
    text-decoration:none;
    font-size:15px;
    font-weight:700;
    border:1px solid #d9e2ec;
    margin-left:8px;
    transition:0.25s ease;
}

.secondary-btn:hover{
    background:#e2e8f0;
    transform:translateY(-1px);
}

.upload-card input[type="file"]{
    padding:12px;
    height:auto;
}

.table-wrap table{
    min-width:1200px;
}

@media(max-width:1100px){
    .panchayat-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .secondary-btn{
        width:100%;
        margin-left:0;
        margin-top:10px;
    }
}
