/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Password Protection Overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.password-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.qr-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.qr-code {
    margin-bottom: 0.75rem;
}

.qr-code img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-url {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
}

.password-card h2 {
    color: #1e3c72;
    font-size: 28px;
    margin-bottom: 10px;
}

.password-card h3 {
    color: #2a5298;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

.password-card p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

#password-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

#password-input:focus {
    outline: none;
    border-color: #2a5298;
}

.password-card button {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.password-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3);
}

#error-message {
    margin-top: 15px;
    color: #dc3545;
    font-size: 14px;
    font-weight: 500;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    margin-bottom: 30px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tab-button {
    flex: 1;
    padding: 20px 15px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-button:hover {
    background: rgba(42, 82, 152, 0.1);
    transform: translateY(-2px);
}

.tab-button.active {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    box-shadow: 0 4px 20px rgba(42, 82, 152, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2a5298;
    margin-bottom: 20px;
}

h3 {
    font-size: 28px;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 20px;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.overview-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left: 6px solid #2a5298;
    position: relative;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
}

.overview-card.highlight {
    border-left-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
}

.growth-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-line:last-child {
    border-bottom: none;
}

.label {
    font-size: 22px;
    font-weight: 500;
    color: #666;
}

.value {
    font-size: 28px;
    font-weight: 700;
    color: #1e3c72;
}

/* Actuals Grid */
.actuals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.quarter-card, .summary-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.quarter-card:hover, .summary-card:hover {
    transform: translateY(-5px);
}

.summary-card.full-width {
    grid-column: span 3;
    margin-bottom: 50px;
    padding-bottom: 40px;
}

.actual-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1e3c72;
    margin: 20px 0;
}

.variance {
    font-size: 20px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.variance.over {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.variance.under {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Missions Grid */
.missions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.mission-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-card h3 {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2a5298;
}

.month-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.month-row span:first-child {
    font-weight: 500;
    color: #666;
}

.month-row span:last-child {
    font-weight: 600;
    color: #1e3c72;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e3c72;
    border-top: 2px solid #2a5298;
    margin-top: 10px;
}

.footnote {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(30, 60, 114, 0.05);
    border-radius: 6px;
    border-left: 3px solid #2a5298;
}

/* Expenses Section */
.expenses-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.expense-overview,
.expense-comparison {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.expense-overview {
    border-left: 6px solid #dc3545;
}

.expense-comparison {
    border-left: 6px solid #fd7e14;
}

.expense-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-label {
    font-size: 20px;
    font-weight: 500;
    color: #666;
}

.expense-value {
    font-size: 24px;
    font-weight: 700;
    color: #dc3545;
}

.ratio-stats {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.ratio-item {
    text-align: center;
    padding: 20px;
    background: rgba(253, 126, 20, 0.05);
    border-radius: 10px;
}

.ratio-label {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-bottom: 10px;
}

.ratio-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fd7e14;
    margin-bottom: 5px;
}

.ratio-item small {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Budget Archive Section */
/* Mission Statement */
.mission-statement {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.95));
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 12px 40px rgba(30, 60, 114, 0.3);
    text-align: center;
}

.mission-statement h3 {
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.mission-text {
    margin-bottom: 40px;
}

.mission-text p {
    font-size: 20px;
    line-height: 1.8;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    margin: 0 auto;
}

.key-verses h4 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.verse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.verse-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.verse-item strong {
    color: #ffd700;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.verse-item p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.budget-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.budget-overview,
.budget-structure {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.budget-overview {
    border-left: 6px solid #6f42c1;
}

.budget-structure {
    border-left: 6px solid #e83e8c;
}

.budget-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.budget-item:last-child {
    border-bottom: none;
}

.budget-item.highlight {
    background: rgba(111, 66, 193, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-bottom: none;
}

.budget-item.success {
    background: rgba(40, 167, 69, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-bottom: none;
}

.budget-label {
    font-size: 20px;
    font-weight: 500;
    color: #666;
}

.budget-value {
    font-size: 24px;
    font-weight: 700;
    color: #6f42c1;
}

.budget-item.success .budget-value {
    color: #28a745;
}

/* Budget Evolution Comparison */
.evolution-comparison {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(111, 66, 193, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(111, 66, 193, 0.1);
}

.evolution-year {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.evolution-year.current {
    border-left: 4px solid #28a745;
}

.evolution-year h4 {
    color: #6f42c1;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.evolution-year.current h4 {
    color: #28a745;
}

.year-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.year-stat:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.evolution-arrow {
    font-size: 30px;
    color: #6f42c1;
    font-weight: bold;
    flex-shrink: 0;
}

.growth-highlights {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.highlight-item {
    flex: 1;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-radius: 10px;
    border-left: 4px solid #28a745;
    text-align: center;
}

.growth-label {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
}

.growth-value {
    display: block;
    font-size: 20px;
    color: #28a745;
    font-weight: 700;
}

/* Current Budget Breakdown */
.current-budget {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.current-budget h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e3c72;
}

.budget-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.definite-expenses h4,
.ministry-allocations h4 {
    color: #dc3545;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}

.ministry-allocations h4 {
    color: #28a745;
    border-bottom-color: #28a745;
}

.expense-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.expense-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-item.major {
    background: rgba(220, 53, 69, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
}

.expense-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.expense-amount {
    font-size: 16px;
    color: #dc3545;
    font-weight: 600;
    text-align: right;
}

.expense-detail {
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: right;
}

/* Ministry Allocations */
.allocation-section {
    margin-bottom: 20px;
}

.allocation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 10px;
}

.allocation-name {
    font-size: 18px;
    color: #333;
}

.allocation-percent {
    font-size: 20px;
    color: #28a745;
    font-weight: 700;
}

.sub-allocations {
    margin-left: 20px;
    border-left: 3px solid #28a745;
    padding-left: 15px;
}

.sub-allocation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-allocation:last-child {
    border-bottom: none;
}

.sub-name {
    font-size: 15px;
    color: #666;
}

.sub-percent {
    font-size: 16px;
    color: #28a745;
    font-weight: 600;
}

.allocation-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
}

.allocation-simple:last-child {
    margin-bottom: 0;
}

/* Member Care Ministry Section */
/* SWO Detailed Conference Breakdown */
.care-category.swo-detailed {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.02), rgba(42, 82, 152, 0.05));
    border: 2px solid #2a5298;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
}

.care-category.swo-detailed h4 {
    color: #1e3c72;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.care-category.swo-detailed .category-total {
    font-size: 32px;
    font-weight: 700;
    color: #28a745;
    text-align: center;
    background: rgba(40, 167, 69, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.swo-breakdown {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swo-conference-type {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #2a5298;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.swo-conference-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.conference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.conference-name {
    font-size: 20px;
    font-weight: 600;
    color: #1e3c72;
}

.conference-stats {
    font-size: 16px;
    font-weight: 500;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.conference-years {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.year-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding: 8px 12px;
    background: rgba(42, 82, 152, 0.05);
    border-radius: 8px;
    border-left: 3px solid #2a5298;
}

/* SWO Detailed Breakdown Section - Full Width */
.swo-detailed-breakdown {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.02), rgba(42, 82, 152, 0.05));
    border: 2px solid #2a5298;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    width: 100%;
}

.swo-detailed-breakdown h4 {
    color: #1e3c72;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.swo-overview-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    gap: 20px;
}

.swo-stat {
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.1);
    border-top: 4px solid #2a5298;
    flex: 1;
}

.swo-stat.highlight {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-top: 4px solid #28a745;
    transform: scale(1.02);
}

.swo-stat .stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2a5298;
    margin-bottom: 8px;
}

.swo-stat.highlight .stat-number {
    color: #28a745;
}

.swo-stat .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* Responsive design for SWO section */
@media (max-width: 768px) {
    .care-category.swo-detailed {
        padding: 20px;
    }
    
    .conference-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .conference-name {
        font-size: 18px;
    }
    
    .conference-stats {
        font-size: 14px;
        align-self: flex-start;
    }
    
    .year-detail {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .swo-detailed-breakdown {
        padding: 25px;
        margin: 30px 0;
    }
    
    .swo-detailed-breakdown h4 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .swo-overview-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .swo-stat .stat-number {
        font-size: 28px;
    }
}
.member-care-section {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin-top: 50px;
}

.member-care-section h3 {
    text-align: center;
    color: #28a745;
    font-size: 32px;
    margin-bottom: 20px;
}

.care-description {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.care-overview {
    margin-bottom: 40px;
}

.care-stats {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.care-stat {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
    flex: 1;
}

.care-stat.highlight {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    border-left: 6px solid #28a745;
    transform: scale(1.02);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.care-categories {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.care-category {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #28a745;
}

.care-category h4 {
    color: #28a745;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.category-examples {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.example-item {
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

.category-total {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    padding-top: 15px;
    border-top: 2px solid rgba(40, 167, 69, 0.2);
}

.care-message {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.care-message p {
    font-size: 18px;
    color: #28a745;
    margin: 0;
    font-weight: 500;
}

.structure-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.structure-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.category {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}

.percentage {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.structure-note {
    margin-top: 20px;
    text-align: center;
    font-style: italic;
    color: #999;
}

/* Budget Process */
.budget-process {
    margin-top: 30px;
    padding: 25px;
    background: rgba(232, 62, 140, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(232, 62, 140, 0.1);
}

.budget-process h4 {
    color: #1e3c72;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e83e8c;
}

.step-item.priority {
    background: rgba(220, 53, 69, 0.05);
    border-left-color: #dc3545;
}

.step-item.conditional {
    background: rgba(40, 167, 69, 0.05);
    border-left-color: #28a745;
}

.step-number {
    background: #e83e8c;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-item.priority .step-number {
    background: #dc3545;
}

.step-item.conditional .step-number {
    background: #28a745;
}

.step-content h5 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.process-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    color: #856404;
    font-size: 16px;
}

.process-note strong {
    color: #b8860b;
}

/* Budget Timeline */
.budget-timeline {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.timeline-item {
    background: rgba(30, 60, 114, 0.05);
    border: 2px solid rgba(30, 60, 114, 0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(30, 60, 114, 0.1);
    border-color: rgba(30, 60, 114, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.2);
}

.timeline-item.current {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
}

.timeline-item.current:hover {
    background: rgba(40, 167, 69, 0.15);
}

.timeline-item.future {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
}

.timeline-item.future:hover {
    background: rgba(255, 193, 7, 0.15);
}

.timeline-item .year {
    font-size: 28px;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.timeline-item .status {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.timeline-item.current .year {
    color: #28a745;
}

.timeline-item.future .year {
    color: #ffc107;
}

/* Historical Section */
.historical-summary {
    margin-bottom: 50px;
}

.year-highlight {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.growth-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.growth-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.growth-item .year {
    font-size: 20px;
    color: #666;
    margin-bottom: 10px;
}

.growth-item .amount {
    font-size: 32px;
    font-weight: 700;
    color: #1e3c72;
}

.growth-item.highlight .amount {
    color: #28a745;
    font-size: 38px;
}

/* Chart Containers */
.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.chart-container.large {
    padding: 40px;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
}

.chart-container canvas {
    max-height: 400px;
}

.chart-container.large canvas {
    max-height: 500px;
}

/* Financial History Table */
.financial-history-table {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    margin-bottom: 30px;
}

.financial-history-table h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e3c72;
    font-size: 28px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.history-table thead {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.history-table th {
    padding: 18px 15px;
    text-align: right;
    font-weight: 600;
    border: none;
}

.history-table th:first-child {
    text-align: left;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.history-table tbody tr:hover {
    background-color: rgba(30, 60, 114, 0.05);
}

.history-table tbody tr.current-year {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    font-weight: 600;
    border-top: 2px solid #28a745;
    border-bottom: 2px solid #28a745;
}

.history-table td {
    padding: 16px 15px;
    text-align: right;
    color: #333;
}

.history-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #1e3c72;
}

.history-table tbody tr.current-year td:first-child {
    color: #28a745;
}

.details-btn {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

.monthly-details-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
    opacity: 1;
}

.monthly-details-panel.show {
    display: flex !important;
}

.monthly-details-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid rgba(30, 60, 114, 0.1);
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05), rgba(42, 82, 152, 0.02));
    border-radius: 15px 15px 0 0;
}

.details-header h3 {
    color: #1e3c72;
    font-size: 24px;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

#detailsTableContainer {
    padding: 30px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.details-table th {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.details-table tbody tr:nth-child(even) {
    background: rgba(30, 60, 114, 0.03);
}

.details-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.details-table td:first-child {
    font-weight: 500;
    color: #1e3c72;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .overview-grid,
    .actuals-grid,
    .missions-grid,
    .expenses-summary,
    .budget-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .timeline-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .verse-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mission-text p {
        font-size: 18px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .process-note {
        font-size: 14px;
    }
    
    .evolution-comparison {
        flex-direction: column;
        gap: 15px;
    }
    
    .evolution-arrow {
        transform: rotate(90deg);
        font-size: 24px;
    }
    
    .growth-highlights {
        flex-direction: column;
        gap: 10px;
    }
    
    .budget-breakdown {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .expense-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5px;
    }
    
    .expense-amount,
    .expense-detail {
        text-align: center;
    }
    
    .care-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .care-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .care-categories {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .growth-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    .value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-button {
        padding: 15px;
        font-size: 18px;
    }
    
    h1 {
        font-size: 28px;
    }
}

/* Print Styles for IIS Deployment */
@media print {
    body {
        background: white;
    }
    
    .tab-content {
        background: white;
        box-shadow: none;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-after: always;
    }
}
