

:root {
    --primary-color: #1e3a8a;      /* Deep Royal Blue */
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --accent-red: #b70919;        /* Government Emblem Red */
    --accent-red-hover: #990714;
    --accent-red-light: #fef2f2;
    --success-green: #10b981;     /* Emerald Green */
    --success-light: #ecfdf5;
    --warning-amber: #f59e0b;     /* Amber Gold */
    --warning-light: #fefbeb;
    --info-teal: #14b8a6;         /* Teal */
    --info-light: #f0fdfa;
    --purple: #8b5cf6;            /* Purple */
    --purple-light: #f5f3ff;
    
    --bg-main: #f8fafc;           /* Light cool gray background */
    --bg-card: #ffffff;           /* Pure white card backgrounds */
    --border-color: #e2e8f0;      /* Light border color */
    
    --text-main: #0f172a;         /* Near black slate */
    --text-muted: #64748b;        /* Cool gray for secondary text */
    --text-light: #94a3b8;        /* Light gray for deactivated elements */
    
    --font-ui: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-hindi: 'Plus Jakarta Sans', 'Inter', sans-serif;


    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --sidebar-width: 280px;
    --header-height: 72px;
}

/* Base resets & resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* App container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.app-header {
    height: var(--header-height);
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

.bihar-emblem-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.header-title-container {
    display: flex;
    flex-direction: column;
}

.portal-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.portal-subtitle {
    font-family: var(--font-hindi);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-red);
}

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

/* Panchayat selector */
.panchayat-selector {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    gap: 8px;
    transition: all 0.2s ease;
}

.panchayat-selector:focus-within {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.selector-icon {
    color: var(--text-muted);
    font-size: 14px;
}

.panchayat-dropdown {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    padding-right: 8px;
}

/* User profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.avatar-container {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.avatar-icon {
    color: var(--primary-color);
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-welcome {
    font-size: 11px;
    color: var(--text-muted);
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

.logout-btn {
    color: var(--text-muted);
    font-size: 18px;
    margin-left: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    color: var(--accent-red);
    transform: translateX(2px);
}

/* APP BODY */
.app-body {
    display: flex;
    flex: 1;
}

/* SIDEBAR */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 24px 12px;
    flex-shrink: 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.sidebar-nav li a i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    transition: transform 0.2s ease;
}

.sidebar-nav li a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar-nav li a:hover i {
    transform: scale(1.1);
}

.sidebar-nav li.active a {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-color);
}

.sidebar-nav li.active a i {
    color: var(--primary-color);
}

/* APP CONTENT */
.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents flex items from breaking layout on small screens */
}

.content-wrapper {
    flex: 1;
    padding: 28px;
}

/* FOOTER */
.app-footer {
    height: 48px;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0;
}

.footer-left {
    font-family: var(--font-hindi);
}

/* LOGIN PAGE SPECIFIC */
.login-body {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--primary-color) 100%);
}

.login-logo {
    height: 80px;
    margin-bottom: 16px;
}

.login-title-container {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.login-subtitle {
    font-family: var(--font-hindi);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-red);
}

.login-form-group {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.login-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 16px;
}

.login-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-main);
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.login-input:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

.login-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.25);
}

.login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error-msg {
    color: var(--accent-red);
    background-color: var(--accent-red-light);
    border: 1px solid rgba(183, 9, 25, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-hint {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* DASHBOARD CARDS & LAYOUT */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Banner Row (Banner + Next Sabha Card) */
.dashboard-banner-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}

@media (max-width: 1024px) {
    .dashboard-banner-row {
        grid-template-columns: 1fr;
    }
}

.banner-card {
    background-color: #fff9e6; /* Soft gold background */
    border: 1px solid #ffe8b3;
    border-radius: var(--radius-lg);
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.banner-content {
    flex: 1;
    z-index: 2;
    padding-right: 12px;
}

.banner-header {
    font-family: var(--font-hindi);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.banner-title {
    font-family: var(--font-hindi);
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
    line-height: 1.1;
}

.banner-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    list-style: none;
}

.banner-features li {
    font-family: var(--font-hindi);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.banner-features li i {
    color: var(--success-green);
    font-size: 16px;
}

.banner-image-container {
    width: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.banner-illustration {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.next-sabha-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}

.next-sabha-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-hindi);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.next-sabha-header i {
    color: var(--accent-red);
}

.next-sabha-body {
    margin: 20px 0;
}

.next-sabha-day {
    font-family: var(--font-hindi);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.next-sabha-date {
    font-family: var(--font-hindi);
    font-size: 32px;
    font-weight: 800;
    color: var(--success-green);
}

.btn-detail {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px;
    font-family: var(--font-hindi);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    width: 100%;
    text-decoration: none;
    display: block;
}

.btn-detail:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

/* Statistics row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-family: var(--font-hindi);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

/* Stat card thematic styles */
.stat-blue .stat-icon-wrapper {
    background-color: var(--primary-light);
    color: var(--primary-color);
}
.stat-green .stat-icon-wrapper {
    background-color: var(--success-light);
    color: var(--success-green);
}
.stat-purple .stat-icon-wrapper {
    background-color: var(--purple-light);
    color: var(--purple);
}
.stat-orange .stat-icon-wrapper {
    background-color: var(--warning-light);
    color: var(--warning-amber);
}

/* Middle Grid (Topic + Progress Chart + Dept wise Mapping) */
.dashboard-mid-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-mid-row {
        grid-template-columns: 1fr;
    }
}

.card-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-hindi);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary-color);
}

.card-action-link {
    font-family: var(--font-hindi);
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s ease;
}

.card-action-link:hover {
    transform: translateX(2px);
    text-decoration: underline;
}

.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-md);
}

/* Topic Card specific */
.topic-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: calc(100% - 55px);
    justify-content: space-between;
}

.topic-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.topic-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.topic-title {
    font-family: var(--font-hindi);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.topic-desc {
    font-family: var(--font-hindi);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-topic {
    background-color: #f1f5f9;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-family: var(--font-hindi);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-topic:hover {
    background-color: var(--primary-light);
    border-color: rgba(30, 58, 138, 0.2);
}

/* Progress Chart Card specific */
.progress-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 35px);
}

.progress-chart-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 16px;
}

.svg-progress-circle {
    transform: rotate(-90deg);
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.progress-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: var(--font-hindi);
}

.legend-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-green { background-color: var(--success-green); }
.dot-blue { background-color: #e2e8f0; }

.legend-value {
    font-weight: 700;
    color: var(--text-main);
}

/* Mapping Card specific */
.dept-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dept-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.dept-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dept-name {
    font-family: var(--font-hindi);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dept-name i {
    font-size: 14px;
    color: var(--text-muted);
}

.dept-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

/* Bottom Grid (Recent Suggestions + Man Ki Baat) */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
    }
}

/* Tables general */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.custom-table th {
    font-family: var(--font-hindi);
    background-color: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1.5px solid var(--border-color);
}

.custom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.custom-table tr:last-child td {
    border-bottom: none;
}

.custom-table tr:hover td {
    background-color: #fafbfc;
}

.suggestion-text {
    font-family: var(--font-hindi);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-bullet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 9px;
    flex-shrink: 0;
}

.bullet-blue { background-color: var(--info-teal); }
.bullet-pink { background-color: var(--purple); }
.bullet-orange { background-color: var(--warning-amber); }

.panchayat-tag {
    background-color: #f1f5f9;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

/* Man Ki Baat Card specific */
.mankibaat-card {
    background-color: #fdfaf2; /* Elegant cream background */
    border: 1px solid #f6e8cc;
}

.mankibaat-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 55px);
}

.mankibaat-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.mankibaat-text-group {
    flex: 1;
}

.mankibaat-quote {
    font-family: var(--font-hindi);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 6px;
}

.mankibaat-pm-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px stroke #ffffff;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.btn-audio {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 1px solid #ecdca9;
    border-radius: var(--radius-md);
    padding: 10px;
    font-family: var(--font-hindi);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-audio:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-audio i {
    font-size: 14px;
}

/* SUBPAGE FORM & ELEMENT GENERAL STYLES */
.page-header {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.card-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    /*gap: 6px;*/
}

.form-group-full {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow-sm);
}

.alert-box {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-green);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Calendar page custom calendar styling */
.calendar-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
    }
}

.styled-calendar {
    width: 100%;
    border: none;
    font-family: inherit;
}

.styled-calendar th {
    background-color: #f1f5f9;
    color: var(--text-muted);
    padding: 10px;
    font-weight: 600;
}

.styled-calendar td {
    height: 60px;
    padding: 4px;
    border: 1px solid var(--border-color);
    vertical-align: top;
    text-align: right;
}

.calendar-day-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
}

/* Downloads list card */
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.download-item:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.download-icon {
    font-size: 24px;
    color: var(--accent-red);
}

.download-title {
    font-weight: 600;
    font-size: 14px;
}

.download-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.download-action-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.download-action-btn:hover {
    transform: translateY(2px);
}

/* Media Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
}

.gallery-img-container {
    height: 180px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 12px;
}

.gallery-title {
    font-family: var(--font-hindi);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.gallery-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==========================================================================
   3D DOODLE & MULTI-TAB FORM STYLES
   ========================================================================== */

/* Floating 3D Doodle Button */
.floating-3d-doodle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background-color: var(--accent-red);
    color: #ffffff;
    border: 3.5px solid #0f172a;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Hand-drawn circle */
    box-shadow: 5px 5px 0px #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatDoodle 4s ease-in-out infinite;
}

.floating-3d-doodle-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translate(-3px, -3px) scale(1.05);
    box-shadow: 8px 8px 0px #0f172a;
    animation-play-state: paused;
}

.floating-3d-doodle-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #0f172a;
}

.doodle-btn-svg {
    width: 32px;
    height: 32px;
}

@keyframes floatDoodle {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Sidebar Menu Highlight Option */
.menu-highlight-doodle {
    border: 2px dashed #f59e0b !important;
    background-color: #fffbeb !important;
    border-radius: var(--radius-md);
    margin-bottom: 12px !important;
}

.menu-highlight-doodle a {
    color: #b45309 !important;
    font-weight: 700 !important;
}

.menu-highlight-doodle a i {
    color: #d97706 !important;
}

.menu-highlight-doodle:hover {
    transform: scale(1.02);
}

/* 3D Doodle Cards */
.doodle-card {
    background-color: #ffffff;
    border: 3px solid #0f172a;
    border-radius: 20px 10px 20px 12px/12px 20px 15px 20px; /* Sketchy card corners */
    box-shadow: 6px 6px 0px #0f172a;
    padding: 15px;
    transition: all 0.2s ease;
    /*margin-bottom: 28px;*/
    position: relative;
    overflow: hidden;
}

.doodle-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px #0f172a;
}

/* Doodle Card Accent Header */
.doodle-header-stamp {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    color: rgba(30, 58, 138, 0.08);
    transform: rotate(15deg);
    pointer-events: none;
    font-weight: 800;
}

/* 3D Doodle Buttons */
.btn-doodle-3d {
    background-color: var(--primary-color);
    color: #ffffff;
    border: 2.5px solid #0f172a;
    border-radius: 12px 6px 12px 8px/8px 12px 8px 10px;
    box-shadow: 4px 4px 0px #0f172a;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-doodle-3d:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #0f172a;
    background-color: var(--primary-hover);
}

.btn-doodle-3d:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #0f172a;
}

.btn-doodle-3d-red {
    background-color: var(--accent-red);
}
.btn-doodle-3d-red:hover {
    background-color: var(--accent-red-hover);
}

.btn-doodle-3d-green {
    background-color: var(--success-green);
}
.btn-doodle-3d-green:hover {
    background-color: #059669;
}

/* Multi-tab Horizonal Header Layout */
.doodle-tabs-header {
    display: flex;
    justify-content: space-between;
    background-color: #f1f5f9;
    border: 3px solid #0f172a;
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 28px;
    gap: 6px;
    box-shadow: 4px 4px 0px #0f172a;
}

.doodle-tab-link {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.doodle-tab-link i {
    font-size: 16px;
}

.doodle-tab-link:hover {
    background-color: rgba(30, 58, 138, 0.05);
    color: var(--primary-color);
}

.doodle-tab-link.active-tab {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px #0f172a, 2px 2px 0px #0f172a;
}

/* Tab Panes */
.doodle-tab-pane {
    display: none;
    animation: slideInTab 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.doodle-tab-pane.active-pane {
    display: block;
}

@keyframes slideInTab {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Rows for Tab 2 and Tab 3 */
.dynamic-rows-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.dynamic-row-item {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    padding: 18px;
    background-color: #fafbfc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    animation: rowAppear 0.25s ease-out forwards;
}

@keyframes rowAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.btn-row-remove {
    background: none;
    border: 2px solid #0f172a;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-red);
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 2px 2px 0px #0f172a;
}

.btn-row-remove:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #0f172a;
    background-color: var(--accent-red-light);
}

.btn-row-remove:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #0f172a;
}

/* Complaint Dynamic Row Item Override */
.complaint-row-item {
    grid-template-columns: 2fr 1fr auto;
}

@media (max-width: 640px) {
    .dynamic-row-item, .complaint-row-item {
        grid-template-columns: 1fr;
    }
    .btn-row-remove {
        width: 100%;
        margin-top: 10px;
    }
}

/* Tab Navigation Buttons Bar */
.tab-navigation-bar {
    display: flex;
    justify-content: space-between;
    border-top: 2px dashed var(--border-color);
    padding-top: 24px;
    margin-top: 30px;
}

/* 3D Paper Preview Card in Tab 4 */
.preview-paper-card {
    background-color: #fcfdfa;
    background-image: radial-gradient(#e1e4dc 1px, transparent 0);
    background-size: 24px 24px;
    border: 3px solid #0f172a;
    border-radius: 4px;
    padding: 32px;
    box-shadow: 8px 8px 0px #0f172a;
    position: relative;
}

.preview-paper-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 45px;
    bottom: 0;
    width: 2px;
    background-color: rgba(239, 68, 68, 0.4); /* Red paper margin line */
}

.preview-section {
    position: relative;
    padding-left: 32px;
    margin-bottom: 24px;
    z-index: 2;
}

.preview-section-title {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 15px;
    margin-bottom: 10px;
    border-bottom: 1.5px dashed var(--border-color);
    padding-bottom: 4px;
    text-transform: uppercase;
}

.preview-data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.preview-data-item {
    font-weight: 500;
    color: var(--text-muted);
}

.preview-data-item b {
    color: var(--text-main);
}

.preview-rows-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-top: 8px;
}

.preview-rows-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1.5px solid #0f172a;
    padding: 6px 12px 6px 0;
}

.preview-rows-table td {
    padding: 8px 12px 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.preview-complaint-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.preview-complaint-item:last-child {
    border-bottom: none;
}

.preview-complaint-desc {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
}

.preview-photo-attached {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success-green);
    background-color: var(--success-light);
    padding: 4px 10px;
    border-radius: 12px;
    margin-top: 6px;
    font-weight: 600;
}

/* Success Modal Backdrop */
.success-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeInModal 0.2s ease-out forwards;
}

.success-modal-card {
    background-color: #ffffff;
    border: 3.5px solid #0f172a;
    border-radius: 24px;
    box-shadow: 10px 10px 0px #0f172a;
    padding: 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    animation: scaleInModal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.25) forwards;
}

.success-modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--success-light);
    color: var(--success-green);
    border: 3px solid #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 20px auto;
    box-shadow: 4px 4px 0px #0f172a;
    animation: bounceIcon 0.8s infinite;
}

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

@keyframes scaleInModal {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Hand-drawn SVG doodle assets classes */
.svg-doodle-star {
    position: absolute;
    width: 24px;
    height: 24px;
    fill: #f59e0b;
    pointer-events: none;
    z-index: 1;
}

.svg-doodle-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    fill: var(--primary-color);
    pointer-events: none;
    z-index: 1;
}

