/* ===== Full Disclosure Policy Page Styles - QC-Inspired Dark Blue Theme ===== */

/* CSS Variables */
:root {
    /* QC-Style Dark Blue Theme */
    --hero-bg: #1e3a5f;
    --hero-bg-dark: #0f2744;
    --hero-gradient: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    --header-gradient: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #3182ce 100%);

    /* Category Card Colors */
    --card-blue: #3b82f6;
    --card-blue-dark: #2563eb;

    /* Pagadian Accent */
    --accent-gold: #d4a017;
    --accent-gold-light: #f6e05e;

    /* UI Colors */
    --primary: 221 83% 53%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 47%;
    --background: 0 0% 100%;
    --foreground: 222 84% 5%;
    --card: 0 0% 100%;
    --card-foreground: 222 84% 5%;
    --border: 214 32% 91%;
    --ring: 221 83% 53%;
    --success: 142 76% 36%;
    --warning: 38 92% 50%;

    /* Layout */
    --radius: 0.5rem;
    --header-height: 4rem;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Consolas', 'Monaco', monospace;
}

[data-theme="dark"] {
    --background: 222 84% 5%;
    --foreground: 210 40% 98%;
    --card: 222 47% 11%;
    --card-foreground: 210 40% 98%;
    --secondary: 217 33% 17%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217 33% 17%;
    --muted-foreground: 215 20% 65%;
    --border: 217 33% 25%;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--header-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
}

.logo-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.logo-accent {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 1.2em;
}

.logo-subtitle {
    font-size: 0.7rem;
    opacity: 0.85;
    display: block;
}

.header-nav {
    display: flex;
    gap: 0.75rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 4rem 1.5rem;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.0625rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== Section Containers ===== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

/* ===== Category Cards Section ===== */
.category-section {
    padding: 3rem 0;
    background: hsl(var(--muted));
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.category-card {
    background: linear-gradient(135deg, var(--card-blue) 0%, var(--card-blue-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.category-card.active {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.3);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.doc-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ===== Documents Section ===== */
.documents-section {
    padding: 3rem 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    margin-bottom: 1rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
    padding: 0.625rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-width: 180px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--card-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-group {
    flex: 1;
    min-width: 250px;
}

.search-wrapper {
    display: flex;
    gap: 0;
}

.search-wrapper input {
    border-radius: var(--radius) 0 0 var(--radius);
    flex: 1;
}

.search-btn {
    padding: 0.625rem 1rem;
    background: var(--card-blue);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--card-blue-dark);
}

.btn-clear-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-filters:hover {
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
}

/* Results Info */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Table Wrapper */
.table-wrapper {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
}

.documents-table th,
.documents-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid hsl(var(--border));
}

.documents-table th {
    background: hsl(var(--muted));
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: hsl(var(--muted-foreground));
}

.documents-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.documents-table th.sortable:hover {
    background: hsl(var(--secondary));
}

.sort-icon {
    margin-left: 0.5rem;
    opacity: 0.5;
}

.documents-table tbody tr {
    transition: background 0.15s;
}

.documents-table tbody tr:hover {
    background: hsl(var(--muted));
}

.documents-table tbody tr:last-child td {
    border-bottom: none;
}

.doc-title-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.doc-icon {
    padding: 0.25rem 0.5rem;
    background: #dc2626;
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius);
}

.category-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--card-blue);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
}

.actions-cell {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--background));
    color: hsl(var(--muted-foreground));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--card-blue);
    color: white;
    border-color: var(--card-blue);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
}

.empty-icon {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.empty-state p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 0;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--card-blue);
    color: white;
    border-color: var(--card-blue);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
}

.page-number:hover {
    background: hsl(var(--muted));
}

.page-number.active {
    background: var(--card-blue);
    color: white;
    border-color: var(--card-blue);
}

/* ===== Info Section ===== */
.info-section {
    padding: 2rem 0;
    background: hsl(var(--muted));
}

.info-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    border-left: 4px solid var(--card-blue);
}

.info-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--card-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.info-folders {
    font-size: 0.8125rem;
}

.info-folders strong {
    display: block;
    margin-bottom: 0.5rem;
}

.info-folders code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: hsl(var(--muted));
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--hero-bg);
    color: white;
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.footer-tagline {
    color: var(--accent-gold);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: hsl(var(--card));
    border-radius: var(--radius);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-content.modal-large {
    max-width: 1100px;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--hero-bg);
    color: white;
}

.modal-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: var(--radius);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 0;
    height: calc(90vh - 60px);
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Responsive Design ===== */
@media (max-width: 900px) {
    .header-nav {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .documents-table th,
    .documents-table td {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }

    .documents-table th:nth-child(3),
    .documents-table td:nth-child(3),
    .documents-table th:nth-child(4),
    .documents-table td:nth-child(4) {
        display: none;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ===== Budget Summary Section ===== */
.budget-summary-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.budget-summary-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.budget-summary-section .section-container {
    position: relative;
    z-index: 1;
}

.budget-summary-section .section-title {
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.8); }
}

.budget-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.budget-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.budget-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--card-blue));
}

.budget-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.budget-card.total {
    --card-color: #d4a017;
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.2) 0%, rgba(212, 160, 23, 0.1) 100%);
}

.budget-card.general { --card-color: #3b82f6; }
.budget-card.social { --card-color: #10b981; }
.budget-card.economic { --card-color: #8b5cf6; }

.budget-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.budget-card-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.budget-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
}

.budget-card h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-amount {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
}

.budget-card.total .budget-amount {
    font-size: 1.75rem;
    color: var(--accent-gold);
}

.budget-breakdown {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breakdown-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

.breakdown-value {
    font-weight: 600;
    color: white;
    font-family: var(--font-mono);
}

/* ===== Video Section ===== */
.video-section {
    padding: 3rem 0;
    background: hsl(var(--muted));
}

.video-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.video-section .section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-card.live {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--hero-bg) 0%, #2c5282 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-card.live .video-thumbnail {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}

.video-thumbnail svg {
    width: 4rem;
    height: 4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail svg {
    transform: scale(1.1);
}

.live-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
    50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

.live-indicator .pulse {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}

.video-content,
.video-info {
    padding: 1.5rem;
}

.video-content h3,
.video-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.video-content p,
.video-info p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.6;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--card-blue);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.video-btn:hover {
    background: var(--card-blue-dark);
    transform: translateY(-2px);
}

.video-card.live .video-btn {
    background: #dc2626;
}

.video-card.live .video-btn:hover {
    background: #b91c1c;
}

.video-btn.archive-btn {
    background: var(--hero-bg);
}

.video-btn.archive-btn:hover {
    background: #2c5282;
}

.video-thumbnail.archive {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.video-thumbnail.archive svg {
    color: rgba(255, 255, 255, 0.6);
}

/* ===== GAD Programs Section ===== */
.gad-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
}

[data-theme="dark"] .gad-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.gad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.gad-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
    border-left: 4px solid #a855f7;
}

.gad-card:hover {
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.15);
    transform: translateY(-2px);
}

.gad-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.gad-code {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.gad-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #7c3aed;
    font-family: var(--font-mono);
}

.gad-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gad-schedule {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ===== Statistics Counter Animation ===== */
.stat-counter {
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-counter.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== Progress Bars ===== */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--card-blue) 0%, #8b5cf6 100%);
    border-radius: 9999px;
    transition: width 1s ease-out;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-card {
    animation: fadeIn 0.3s ease-out;
}

.documents-table tbody tr {
    animation: fadeIn 0.2s ease-out;
}

/* ===== Mobile Responsiveness for Budget & Video Sections ===== */
@media (max-width: 1200px) {
    .budget-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .budget-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 600px) {
    .budget-summary-section {
        padding: 2rem 0;
    }

    .budget-summary-section .section-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .budget-summary-grid {
        grid-template-columns: 1fr;
    }

    .budget-card {
        padding: 1.25rem;
    }

    .budget-card.total .budget-amount {
        font-size: 1.5rem;
    }

    .budget-amount {
        font-size: 1.25rem;
    }

    .video-section {
        padding: 2rem 0;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-thumbnail svg {
        width: 3rem;
        height: 3rem;
    }

    .video-content,
    .video-info {
        padding: 1.25rem;
    }

    .gad-grid {
        grid-template-columns: 1fr;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
