/* ============================================
   PREMIUM PAGE HEADER DESIGN
   ============================================ */

.premium-page-header {
    position: relative;
    background: linear-gradient(135deg, #A52A2A 0%, #8B4513 100%);
    padding: 120px 0 80px;
    overflow: hidden;
    margin-bottom: 60px;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: headerPulse 15s ease-in-out infinite;
}

@keyframes headerPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.header-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent, transparent 35px,
            rgba(255, 255, 255, .03) 35px,
            rgba(255, 255, 255, .03) 70px);
    opacity: 0.5;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.header-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: -1px;
}

.header-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Breadcrumb */

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.05rem;
}

.breadcrumb-custom .breadcrumb-item {
    display: inline-block;
}

.breadcrumb-custom .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: #ffd700;
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

/* ============================================
   REPORTS SECTION & LAYOUT
   ============================================ */

.reports-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.reports-layout {
    align-items: flex-start;
}

/* Sidebar */

.reports-sidebar {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 10px 30px rgba(165, 42, 42, 0.1);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #A52A2A;
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.reports-search .input-group-text {
    background: #fff7f3;
    border-color: #f1d0c4;
}

.reports-search .form-control {
    border-color: #f1d0c4;
}

.sidebar-note {
    background: #fff8e8;
    border-radius: 12px;
    padding: 10px 12px;
    color: #8b5a2b;
    border-left: 3px solid #f0b45a;
}

/* Main list */

.reports-list {
    width: 100%;
}

/* Filter Buttons – vertical in sidebar */

.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.filter-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 14px;
    border: 2px solid #A52A2A;
    background: linear-gradient(135deg, #ffffff, #fef8f8);
    color: #A52A2A;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow:
        0 4px 12px rgba(165, 42, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(165, 42, 42, 0.08);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.filter-btn:hover::before {
    width: 220px;
    height: 220px;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #A52A2A, #8B4513);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(165, 42, 42, 0.25);
    border-color: #8B4513;
}

.filter-btn.active {
    background: linear-gradient(135deg, #A52A2A, #8B4513) !important;
    color: #fff !important;
    box-shadow:
        0 10px 24px rgba(165, 42, 42, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2) !important;
    border-color: #8B4513 !important;
}

/* No Reports Message */

.no-reports-message {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(165, 42, 42, 0.1);
}

.no-reports-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(165, 42, 42, 0.1), rgba(139, 69, 19, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #A52A2A;
}

.no-reports-message h3 {
    font-size: 2rem;
    color: #A52A2A;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-reports-message p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   REPORT CARD - PREMIUM
   ============================================ */

.report-card {
    background: linear-gradient(145deg, #ffffff 0%, #fef8f8 100%);
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 35px;
    box-shadow:
        0 14px 40px rgba(165, 42, 42, 0.12),
        0 6px 18px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.report-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(165, 42, 42, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.report-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 22px 60px rgba(165, 42, 42, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(165, 42, 42, 0.25);
}

/* Header */

.report-header {
    position: relative;
    z-index: 1;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px dashed rgba(165, 42, 42, 0.25);
}

.report-year-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
}

.report-year-badge .year-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #7f3a24;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(165, 42, 42, 0.06);
    border: 1px solid rgba(165, 42, 42, 0.18);
}

.report-title {
    font-size: 1.9rem;
    font-family: "Playfair Display", serif;
    font-weight: 800;
    color: #A52A2A;
    text-shadow: 1px 1px 3px rgba(165, 42, 42, 0.08);
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* PDF Button */

.report-header .btn {
    margin-top: 10px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #A52A2A 0%, #8B4513 100%);
    border: none;
    color: #fff;
    box-shadow:
        0 8px 20px rgba(165, 42, 42, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.report-header .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.report-header .btn:hover::before {
    width: 220px;
    height: 220px;
}

.report-header .btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(165, 42, 42, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.report-header .btn i {
    margin-right: 6px;
    font-size: 1rem;
}

/* Content */

.report-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #2c3e50;
    position: relative;
    z-index: 1;
    padding-top: 8px;
}

.report-content p {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(254, 248, 248, 0.7));
    border-radius: 10px;
    border-left: 4px solid rgba(165, 42, 42, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.report-content p:hover {
    transform: translateX(5px);
    border-left-color: #A52A2A;
    box-shadow: 0 4px 14px rgba(165, 42, 42, 0.12);
}

/* Lists */

.report-content ul,
.report-content ol {
    margin: 18px 0;
    padding-left: 32px;
}

.report-content ol {
    counter-reset: rpt-counter;
    list-style: none;
}

.report-content ol li {
    counter-increment: rpt-counter;
    position: relative;
    margin-bottom: 12px;
    padding-left: 18px;
}

.report-content ol li::before {
    content: counter(rpt-counter);
    position: absolute;
    left: -26px;
    top: 1px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #A52A2A, #8B4513);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.report-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 16px;
}

.report-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #A52A2A;
    font-size: 1.2rem;
}

/* Tables */

.report-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(165, 42, 42, 0.12);
    background: #fff;
}

.report-content thead {
    background: linear-gradient(135deg, #A52A2A 0%, #8B4513 100%);
}

.report-content th {
    padding: 14px 16px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: none;
}

.report-content td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(165, 42, 42, 0.12);
    font-size: 0.95rem;
    color: #2c3e50;
}

.report-content tbody tr:nth-child(even) {
    background: rgba(254, 248, 248, 0.6);
}

.report-content tbody tr:hover {
    background: rgba(165, 42, 42, 0.06);
}

/* Animations */

.fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */

@media (max-width: 992px) {
    .reports-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .premium-page-header {
        padding: 80px 0 60px;
    }

    .header-title {
        font-size: 2.2rem;
    }

    .header-subtitle {
        font-size: 1.1rem;
    }

    .header-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .report-card {
        padding: 22px 18px;
        margin-bottom: 25px;
    }

    .report-title {
        font-size: 1.45rem;
    }

    .filter-btn {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}