/* ========================================
   FINANCIAL REPORTS PAGE STYLES
======================================== */

:root {
    --gradient-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-gold: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Main Section */
.financial {
    padding: 80px 0;
    background: #ffffff;
}

.report-type-block {
    margin-bottom: 80px;
}

.report-type-block:last-child {
    margin-bottom: 0;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.section-badge i {
    font-size: 1.1rem;
}

/* Filter Section */
.filter-section .card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.filter-section .card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.filter-section .form-label {
    color: #2c3e50;
    margin-bottom: 8px;
}

.filter-section .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-section .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
}

/* Results Info */
.results-info .badge {
    border-radius: 50px;
    font-weight: 500;
}

/* Report Card */
.report-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-blue);
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

/* Report Card Header */
.report-card-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 30px;
    text-align: center;
    position: relative;
}

.report-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.report-card:hover .report-icon {
    transform: scale(1.1) rotate(5deg);
}

.year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Report Card Body */
.report-card-body {
    padding: 30px;
}

.report-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.report-year-label {
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Report Actions */
.report-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-report {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-report i {
    font-size: 1.1rem;
}

/* PDF Viewer Modal */
#pdfViewerModal .modal-dialog {
    margin: 0;
    max-width: 100%;
}

#pdfViewerModal .modal-content {
    border-radius: 0;
    height: 100vh;
}

#pdfViewerModal .modal-header {
    background: #343a40;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.5rem;
}

#pdfViewerModal .modal-title {
    font-weight: 600;
    color: white;
}

#pdfFrame {
    background: white;
    width: 100%;
    height: calc(100vh - 70px);
    border: none;
}

#pdfLoading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 30px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    color: #adb5bd;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 992px) {
    .financial {
        padding: 60px 0;
    }
    
    .report-type-block {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .financial {
        padding: 50px 0;
    }
    
    .report-type-block {
        margin-bottom: 50px;
    }
    
    .report-card-header {
        padding: 25px;
    }
    
    .report-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .report-card-body {
        padding: 25px;
    }
    
    .report-title {
        font-size: 1.1rem;
        min-height: auto;
    }
    
    .filter-section .card-body {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .section-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .report-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .year-badge {
        font-size: 1rem;
        padding: 6px 16px;
    }
    
    .report-title {
        font-size: 1rem;
    }
    
    .btn-report {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .empty-state {
        padding: 60px 20px;
    }
}

/* ========================================
   ANIMATION CLASSES
======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Fix z-index issues */
.modal-backdrop {
    z-index: 1040;
}

#pdfViewerModal {
    z-index: 1050;
}

/* Color Variations for Different Report Types */
.report-card.type-statement::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-card.type-budget::before {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.report-card.type-performance::before {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.report-card.type-fund::before {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}