/* Import Modern Bootstrap Icons Library */
@import url('../vendor/bootstrap-icons/bootstrap-icons.min.css');

/* School Notice & Reporting Management System - Master Stylesheet (Vibrant & Colorful) */
:root {
    /* Brand Colors */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --accent: #2563eb;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;

    /* Theme Gradients */
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-cyan: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-header: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);

    /* Typography & Surface */
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --bg-page: #f1f5f9;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-glow-blue: 0 4px 14px rgba(37, 99, 235, 0.28);
    --shadow-glow-green: 0 4px 14px rgba(16, 185, 129, 0.25);
    --shadow-glow-amber: 0 4px 14px rgba(245, 158, 11, 0.25);
    --shadow-glow-rose: 0 4px 14px rgba(244, 63, 94, 0.25);

    /* Status Colors */
    --status-draft: #64748b;
    --status-submitted: #2563eb;
    --status-under-review: #0284c7;
    --status-verified: #059669;
    --status-correction: #e11d48;
    --status-pending: #d97706;
    --status-inactive: #475569;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Noto Sans Devanagari";
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-main);
    background-color: var(--bg-page);
    min-height: 100vh;
}

/* Professional Icon System (Bootstrap Icons Normalization) */
.bi, [class^="bi-"], [class*=" bi-"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
    font-size: 1.05em;
    line-height: 1;
}

.icon-xs { font-size: 0.75rem !important; }
.icon-sm { font-size: 0.875rem !important; }
.icon-md { font-size: 1.15rem !important; }
.icon-lg { font-size: 1.4rem !important; }
.icon-xl { font-size: 1.85rem !important; }

/* Icon in Buttons */
.btn .bi, .btn [class^="bi-"], .btn [class*=" bi-"] {
    font-size: 1.05em;
    margin-right: 4px;
    vertical-align: -0.12em;
}

/* Icon in Badges */
.badge .bi, .badge [class^="bi-"], .badge [class*=" bi-"] {
    font-size: 0.95em;
    margin-right: 2px;
}

/* Icon in Nav Items */
.nav-item .bi, .nav-item [class^="bi-"], .nav-item [class*=" bi-"] {
    font-size: 1.15rem;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Icon in Sidebar Brand */
.sidebar-brand-icon .bi {
    font-size: 1.35rem;
    color: #ffffff;
}

/* Icon in User Avatar */
.user-avatar .bi {
    font-size: 1rem;
    color: #ffffff;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout Elements */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 260px;
    background: #ffffff;
    color: #0f172a;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 14px rgba(15, 23, 42, 0.05);
}

.sidebar-header {
    padding: 20px 22px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-brand-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.2;
    color: #0f172a;
}

.sidebar-brand-subtitle {
    font-size: 11px;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 14px 14px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2563eb;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #334155;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 13.5px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-item i {
    font-size: 16px;
    color: #475569;
    transition: color 0.2s ease;
}

.nav-item:hover {
    background: #eff6ff;
    color: #1d4ed8;
    transform: translateX(3px);
}

.nav-item:hover i {
    color: #2563eb;
}

.nav-item.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.nav-item.active i {
    color: #ffffff !important;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bg-page);
}

.app-topbar {
    height: 64px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

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

.page-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-cyan);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
}

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

/* Card Component (Vibrant Top Accent with Animated Gradient Bar) */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease, border-color 0.2s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #2563eb 0%, #06b6d4 50%, #6366f1 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    z-index: 2;
}

.card:hover {
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.card-header {
    padding: 16px 22px;
    background: var(--gradient-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.card-body {
    padding: 22px;
}

.card-footer {
    padding: 14px 22px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

/* Stat Cards Grid (Colorful Modern Cards with Entrance Micro-Animations) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.stat-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.16s; }

.stat-card:hover {
    transform: translateY(-5px);
}
.stat-card:nth-child(1):hover {
    box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.22), 0 8px 12px -4px rgba(37, 99, 235, 0.12);
}
.stat-card:nth-child(2):hover {
    box-shadow: 0 16px 32px -6px rgba(244, 63, 94, 0.22), 0 8px 12px -4px rgba(244, 63, 94, 0.12);
}
.stat-card:nth-child(3):hover {
    box-shadow: 0 16px 32px -6px rgba(245, 158, 11, 0.22), 0 8px 12px -4px rgba(245, 158, 11, 0.12);
}
.stat-card:nth-child(4):hover {
    box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.22), 0 8px 12px -4px rgba(16, 185, 129, 0.12);
}

/* Stat Card 1: Electric Blue theme */
.stat-card:nth-child(1) {
    border-top: 4px solid #2563eb;
    background: linear-gradient(150deg, #ffffff 60%, #eff6ff 100%);
}
.stat-card:nth-child(1) .stat-card-title {
    color: #1d4ed8;
}
.stat-card:nth-child(1) .stat-card-value {
    color: #1e40af;
}

/* Stat Card 2: Vibrant Rose / Magenta theme */
.stat-card:nth-child(2) {
    border-top: 4px solid #f43f5e;
    background: linear-gradient(150deg, #ffffff 60%, #fff1f2 100%);
}
.stat-card:nth-child(2) .stat-card-title {
    color: #be123c;
}
.stat-card:nth-child(2) .stat-card-value {
    color: #e11d48;
}

/* Stat Card 3: Warm Amber / Gold theme */
.stat-card:nth-child(3) {
    border-top: 4px solid #f59e0b;
    background: linear-gradient(150deg, #ffffff 60%, #fffbeb 100%);
}
.stat-card:nth-child(3) .stat-card-title {
    color: #b45309;
}
.stat-card:nth-child(3) .stat-card-value {
    color: #d97706;
}

/* Stat Card 4: Emerald Green theme */
.stat-card:nth-child(4) {
    border-top: 4px solid #10b981;
    background: linear-gradient(150deg, #ffffff 60%, #ecfdf5 100%);
}
.stat-card:nth-child(4) .stat-card-title {
    color: #047857;
}
.stat-card:nth-child(4) .stat-card-value {
    color: #059669;
}

.stat-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* Vibrant Glowing Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseGlow 2.4s infinite ease-in-out;
}

.badge-draft {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}
.badge-draft::before {
    background-color: #94a3b8;
}

.badge-submitted {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
.badge-submitted::before {
    background-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}

.badge-under_review {
    background-color: #ecfeff;
    border-color: #a5f3fc;
    color: #0e7490;
}
.badge-under_review::before {
    background-color: #06b6d4;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.6);
}

.badge-verified, .badge-approved {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.badge-verified::before, .badge-approved::before {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.badge-correction_required, .badge-correction {
    background-color: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.badge-correction_required::before, .badge-correction::before {
    background-color: #f43f5e;
    box-shadow: 0 0 6px rgba(244, 63, 94, 0.6);
}

.badge-pending, .badge-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #b45309;
}
.badge-pending::before, .badge-warning::before {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.badge-active {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.badge-active::before {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.badge-published {
    background-color: #f5f3ff;
    border-color: #ddd6fe;
    color: #6d28d9;
}
.badge-published::before {
    background-color: #8b5cf6;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

.badge-closed, .badge-inactive {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}
.badge-closed::before, .badge-inactive::before {
    background-color: #94a3b8;
}

.badge-secondary {
    background-color: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
}
.badge-secondary::before {
    background-color: #6366f1;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.6);
}

/* Colorful Gradient Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.4;
    user-select: none;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-primary {
    background: var(--gradient-blue);
    color: #ffffff;
    box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

.btn-secondary {
    background-color: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-success {
    background: var(--gradient-emerald);
    color: #ffffff;
    box-shadow: var(--shadow-glow-green);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.38);
}

.btn-danger {
    background: var(--gradient-rose);
    color: #ffffff;
    box-shadow: var(--shadow-glow-rose);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.38);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12.5px;
    border-radius: 6px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.form-label .required {
    color: #f43f5e;
    margin-left: 3px;
    font-weight: 700;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18);
    background-color: #ffffff;
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

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

/* Responsive Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background: var(--gradient-header);
    color: #334155;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 18px;
    border-bottom: 2px solid #cbd5e1;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #edf2f7;
    font-size: 13.5px;
    vertical-align: middle;
    transition: background 0.15s ease;
}

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

.data-table tbody tr:hover {
    background-color: #eff6ff !important;
    box-shadow: inset 4px 0 0 #2563eb;
}

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

/* Code & Identifier Badges */
code {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Filter Bar */
.filter-bar {
    background: var(--gradient-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.filter-item {
    min-width: 160px;
    flex: 1;
}

.filter-search {
    flex: 2;
    min-width: 240px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-top: 12px;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-links {
    display: flex;
    gap: 6px;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    transition: all 0.15s ease;
}

.page-btn:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.page-btn.active {
    background: var(--gradient-blue);
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: var(--shadow-glow-blue);
    font-weight: 700;
}

/* Alerts & Flash Messages (Vibrant Colors) */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fff1f2 0%, #fee2e2 100%);
    color: #881337;
    border: 1px solid #fecdd3;
    border-left: 5px solid #f43f5e;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #78350f;
    border: 1px solid #fde68a;
    border-left: 5px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0c4a6e;
    border: 1px solid #bae6fd;
    border-left: 5px solid #0284c7;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    animation: toastSlideIn 0.3s ease;
}

.toast-success { border-left-color: #16a34a; }
.toast-danger { border-left-color: #dc2626; }
.toast-warning { border-left-color: #ea580c; }
.toast-info { border-left-color: #0284c7; }
.toast-close-btn {
    padding: 3px 8px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: all 0.15s ease;
}
.toast-close-btn:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.65;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

.modal-box {
    background-color: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    position: relative;
    animation: modalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) ease;
}

.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
}

@keyframes modalPop {
    from { transform: scale(0.94) translateY(6px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 14px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 100;
    }
    .app-sidebar.open {
        transform: translateX(260px);
    }
    .app-content {
        padding: 16px;
    }
    .app-topbar {
        padding: 0 16px;
    }
}

/* General Layout Utilities (Strictly No Inline CSS) */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 4px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.mt-5 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 32px !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

/* Responsive Display Utilities */
@media (max-width: 768px) {
    .d-desktop-only, .d-desktop-block { display: none !important; }
    .d-mobile-block { display: block !important; }
    .d-mobile-flex { display: flex !important; }
}
@media (min-width: 769px) {
    .d-mobile-only, .d-mobile-block, .d-mobile-flex { display: none !important; }
    .d-desktop-block { display: block !important; }
}
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-1 { flex: 1 !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-5 { gap: 24px !important; }

/* Text & Typography */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; }
.text-monospace { font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace !important; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--status-verified) !important; }
.text-danger { color: var(--status-correction) !important; }
.text-warning { color: var(--status-pending) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-normal { font-weight: 400 !important; }
.font-sm { font-size: 13px !important; }
.font-xs { font-size: 12px !important; }

/* Component Containers */
.card-center-sm { max-width: 520px; margin: 30px auto; }
.card-center { max-width: 760px; margin: 0 auto; }
.card-center-lg { max-width: 960px; margin: 0 auto; }
.card-full { width: 100%; }
.form-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 12px; }
.form-actions-between { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-body-flush { padding: 0 !important; }
.table-empty { text-align: center; padding: 32px 16px; color: var(--text-muted); }

/* Interactive Badges & Counters */
.badge-pill { border-radius: 9999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.badge-count { min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; padding: 0 6px; }

/* Modern Stats Grid */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* Filter Bars & Search */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.filter-bar-card { margin: 0; border: none; border-bottom: 1px solid var(--border-color); border-radius: 0; }

/* Notice / Instruction Notice Board */
.notice-body-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-main);
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #7dd3fc;
    box-shadow: 0 1px 2px rgba(2, 132, 199, 0.12);
    transition: all 0.2s ease;
}

.attachment-chip:hover {
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
    color: #0c4a6e;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Form Builder / Field Schema */
.builder-field-card {
    border: 1px solid var(--border-color);
    border-left: 4px solid #3b82f6;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.builder-field-card:hover {
    border-color: #93c5fd;
    border-left-color: #2563eb;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.builder-field-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Media Slot Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.media-slot-card {
    border: 2px dashed #93c5fd;
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    transition: all 0.25s ease;
}

.media-slot-card:hover {
    border-color: #2563eb;
    background: #e0f2fe;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.media-slot-card.has-file {
    border-style: solid;
    border-color: #10b981;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.media-slot-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-slot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-slot-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Timeline (Vibrant Colored Trail) */
.timeline {
    position: relative;
    padding-left: 32px;
    margin: 20px 0 20px 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gradient-blue);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #93c5fd, 0 0 8px rgba(37, 99, 235, 0.4);
}

.timeline-dot.verified {
    background: var(--gradient-emerald);
    box-shadow: 0 0 0 2px #86efac, 0 0 8px rgba(16, 185, 129, 0.4);
}

.timeline-dot.correction {
    background: var(--gradient-rose);
    box-shadow: 0 0 0 2px #fca5a5, 0 0 8px rgba(244, 63, 94, 0.4);
}

.timeline-dot.submitted {
    background: var(--gradient-cyan);
    box-shadow: 0 0 0 2px #67e8f9, 0 0 8px rgba(6, 182, 212, 0.4);
}

.timeline-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.timeline-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.timeline-comment, .timeline-remarks {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-left: 3px solid #3b82f6;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Document Previews & Letter Pad */
.doc-sheet {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
    padding: 48px;
    max-width: 820px;
    margin: 0 auto;
    color: #000000;
    position: relative;
}

.doc-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1d4ed8 0%, #06b6d4 50%, #10b981 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.doc-header-border {
    border-bottom: 2px solid #1d4ed8;
    padding-bottom: 16px;
    margin-bottom: 24px;
    text-align: center;
}
.doc-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.doc-table th, .doc-table td { border: 1px solid #cbd5e1; padding: 10px 14px; font-size: 13.5px; }
.doc-table th { background-color: #f1f5f9; font-weight: 600; text-align: left; }

.error-trace-pre {
    background: #f1f5f9;
    padding: 12px;
    font-size: 11px;
    overflow-x: auto;
    border-radius: var(--radius-sm);
    color: #334155;
    text-align: left;
}

/* Dashboard Visual Analytics & Charts Grid (Modern, Unique & Fully Colourful) */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-bottom: 26px;
}

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

.chart-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: cardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    z-index: 2;
}

.chart-card.theme-purple::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #ec4899 50%, #f43f5e 100%);
}

.chart-card.theme-emerald::before {
    background: linear-gradient(90deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
}

.chart-card.theme-amber::before {
    background: linear-gradient(90deg, #f59e0b 0%, #f97316 50%, #ef4444 100%);
}

.chart-card-header {
    padding: 16px 20px;
    background: var(--gradient-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.chart-card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chart-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-legend-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.legend-pill:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Hero Banners for Dashboards */
.dashboard-hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4f46e5 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 0.3s ease;
}

.dashboard-hero-banner.theme-admin {
    background: linear-gradient(135deg, #091322 0%, #172554 45%, #1e3a8a 100%);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
}

.dashboard-hero-banner.theme-control {
    background: linear-gradient(135deg, #18181b 0%, #1e1b4b 45%, #312e81 100%);
    box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.35);
}

.dashboard-hero-banner::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-banner-desc {
    font-size: 13.5px;
    color: #bfdbfe;
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badge-pill {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

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

.hero-score-badge {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    animation: heroFloat 5s ease-in-out infinite;
}

.hero-score-val {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-score-lbl {
    font-size: 11px;
    font-weight: 700;
    color: #bfdbfe;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
}

/* Live Pulse Beacon & Micro-Animations (SaaS Modern) */
.live-beacon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: 0.5px;
    position: relative;
}

.live-beacon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    animation: beaconPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.beacon-success {
    background-color: #10b981;
}
.beacon-success::after {
    border: 2px solid #10b981;
}

.beacon-warning {
    background-color: #f59e0b;
}
.beacon-warning::after {
    border: 2px solid #f59e0b;
}

.beacon-danger {
    background-color: #f43f5e;
}
.beacon-danger::after {
    border: 2px solid #f43f5e;
}

.beacon-primary {
    background-color: #2563eb;
}
.beacon-primary::after {
    border: 2px solid #2563eb;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }
    70% {
        transform: scale(2.2);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}




/* ==========================================================================
   Government Proforma Table & Official Report Styles (Bihar / Jharkhand Format)
   ========================================================================== */
.gov-proforma-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.gov-proforma-header {
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.gov-office-line {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.gov-main-title {
    font-size: 1.45rem;
    font-weight: 800;
    text-decoration: underline;
    margin: 6px 0 8px 0;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.gov-sub-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gov-class-badge {
    display: inline-block;
    border: 1.5px solid #0f172a;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 800;
    background: #f8fafc;
}

.gov-meta-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    color: var(--text-secondary);
}

.gov-proforma-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #0f172a;
    background: #ffffff;
}

.gov-proforma-table th,
.gov-proforma-table td {
    border: 1.5px solid #334155;
    padding: 8px 6px;
    vertical-align: middle;
}

.gov-proforma-table th {
    background-color: #f1f5f9;
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #0f172a;
}

.gov-proforma-table .hi-sub,
.gov-proforma-table .hi-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    color: #475569;
    margin-top: 2px;
}

.gov-proforma-table td {
    font-size: 0.84rem;
}

.gov-proforma-notes {
    margin-top: 14px;
    padding: 10px 16px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #0f172a;
}

.gov-proforma-notes .note-line {
    font-weight: 600;
    margin-bottom: 4px;
}

.gov-proforma-notes .note-title {
    font-weight: 700;
    margin-top: 6px;
}

.gov-proforma-notes .note-list {
    margin: 4px 0 0 20px;
    padding: 0;
}

.gov-proforma-notes .note-list li {
    margin-bottom: 3px;
    color: #334155;
}

.gov-attachments-box {
    margin-top: 16px;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
}

.gov-attachments-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gov-attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.gov-doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.gov-doc-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.gov-doc-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.gov-doc-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #eff6ff;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gov-doc-info {
    flex: 1;
    min-width: 0;
}

.gov-doc-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gov-doc-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.gov-signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 12px;
}

.gov-signatures .print-signature-box {
    width: 280px;
    text-align: center;
    border-top: 1.5px solid #0f172a;
    padding-top: 8px;
    font-size: 0.9rem;
}
