/* ============================================
   ENHANCED REPORTS CSS - SIMPLIFIED MODERN DESIGN
   Matching Laws Index Page Style
   ============================================ */

/* Base Variables */
:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --text-primary: #0D1B3E;
    --text-secondary: #64748b;
    --border-light: rgba(13, 27, 62, 0.08);
    --shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.06);
    --shadow-md: 0 4px 16px rgba(13, 27, 62, 0.08);
    --shadow-lg: 0 8px 24px rgba(13, 27, 62, 0.12);
    --transition: all 0.3s ease;
}

/* ============================================
   STATS OVERVIEW - SIMPLIFIED
   ============================================ */
.reports-stats-wrapper {
    margin: -40px auto 40px;
    max-width: 1200px;
    padding: 0 20px;
}

.stat-card {
    background: var(--moif-white);
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

    /* Simple left accent */
    .stat-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--moif-gold);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.12);
        border-color: var(--moif-gold);
    }

        .stat-card:hover::before {
            opacity: 1;
        }

/* Outlined Icon - No Background */
.stat-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2.5px solid var(--moif-blue-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.05);
    background: rgba(201, 162, 39, 0.05);
    border-color: var(--moif-gold);
}

.stat-icon i {
    font-size: 28px;
    color: var(--moif-blue-dark);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-icon i {
    color: var(--moif-gold);
}

.stat-content h4 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--moif-blue-dark);
    line-height: 1;
}

.stat-content span {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* ============================================
   FILTER SECTION - SIMPLIFIED
   ============================================ */
.reports-filter-section {
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    gap: 15px;
}

.filter-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .filter-title-wrapper i {
        font-size: 22px;
        color: var(--moif-gold);
    }

    .filter-title-wrapper h5 {
        color: var(--moif-blue-dark);
        font-size: 20px;
        font-weight: 700;
        margin: 0;
    }

.btn-clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--moif-white);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-clear-filters:hover {
        background: #dc3545;
        color: var(--moif-white);
    }

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

    .filter-label i {
        color: var(--moif-gold);
        font-size: 14px;
    }

.select-wrapper {
    position: relative;
}

.form-select-custom {
    width: 100%;
    padding: 12px 35px 12px 12px;
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: var(--moif-blue-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
}

    .form-select-custom:focus {
        outline: none;
        border-color: var(--moif-gold);
        box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
    }

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--moif-gold);
    font-size: 18px;
    pointer-events: none;
}

[dir="rtl"] .select-arrow {
    right: auto;
    left: 12px;
}

[dir="rtl"] .form-select-custom {
    padding: 12px 12px 12px 35px;
}

.active-filters-display {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.active-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 600;
}

    .active-label i {
        color: var(--moif-gold);
    }

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--moif-blue-dark);
    color: var(--moif-white);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

    .filter-badge:hover {
        background: #dc3545;
        color: var(--moif-white);
    }

/* ============================================
   RESULTS INFO BAR
   ============================================ */
.results-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 24px;
    gap: 15px;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

    .results-count i {
        font-size: 18px;
        color: var(--moif-gold);
    }

    .results-count strong {
        color: var(--moif-blue-dark);
        font-weight: 700;
    }

.view-options {
    display: flex;
    gap: 6px;
}

.view-btn {
    width: 36px;
    height: 36px;
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

    .view-btn:hover {
        border-color: var(--moif-gold);
        color: var(--moif-gold);
    }

    .view-btn.active {
        background: var(--moif-gold);
        border-color: var(--moif-gold);
        color: var(--moif-white);
    }

/* ============================================
   REPORT CARD - SIMPLIFIED MODERN DESIGN
   ============================================ */
.report-card {
    background: var(--moif-white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

    .report-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.12);
        border-color: var(--moif-gold);
    }

/* Card Header - Simple Dark Header */
.report-card-header {
    padding: 16px 20px;
    background: var(--moif-blue-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Report Type Badge */
.report-type-badge .badge,
.badge-trade,
.badge-investment,
.badge-freezones,
.badge-other {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--moif-white);
    display: inline-block;
}

/* Specific Badge Colors */
.badge-trade {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-investment {
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid rgba(201, 162, 39, 0.4);
}

.badge-freezones {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-other {
    background: rgba(108, 117, 125, 0.2);
    border: 1px solid rgba(108, 117, 125, 0.4);
}

/* Report Year */
.report-year {
    font-size: 13px;
    color: var(--moif-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .report-year i {
        color: var(--moif-gold-bright);
        font-size: 14px;
    }

/* Legacy Support - Law Number & Status */
.report-law-number {
    color: var(--moif-white);
    font-weight: 600;
    font-size: 14px;
}

.report-status-indicator {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #10b981;
    color: var(--moif-white);
}

/* Card Body */
.report-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Badge in Body */
.report-category-badge,
.report-category {
    display: inline-block;
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    width: fit-content;
}

/* Card Title */
.report-card-title,
.report-title {
    margin: 0 0 16px;
    min-height: 48px;
    flex-grow: 1;
}

    .report-card-title a,
    .report-title a {
        color: var(--moif-blue-dark);
        font-size: 16px;
        font-weight: 600;
        line-height: 1.5;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        transition: color 0.3s;
    }

.report-card:hover .report-card-title a,
.report-card:hover .report-title a {
    color: var(--moif-gold);
}

/* Report Description */
.report-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Authority Info */
.report-authority {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .report-authority i {
        color: var(--moif-gold);
        font-size: 14px;
    }

/* Report Meta */
.report-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.report-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

    .report-meta-item i {
        color: var(--moif-gold);
        font-size: 14px;
    }

.report-meta-date {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

    .report-meta-date i {
        color: var(--moif-gold);
        font-size: 14px;
    }

/* Card Footer */
.report-card-footer {
    padding: 16px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Footer Action Buttons */
.report-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--moif-white);
    border: 1px solid var(--moif-gold);
    color: var(--moif-gold);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
}

    .report-details-btn:hover {
        background: var(--moif-gold);
        color: var(--moif-white);
    }

.report-download-btn {
    width: 44px;
    height: 44px;
    background: var(--moif-blue-dark);
    border: none;
    border-radius: 8px;
    color: var(--moif-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

    .report-download-btn:hover {
        background: var(--moif-gold);
    }

    .report-download-btn i {
        font-size: 18px;
    }

/* Card Link Overlay */
.report-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Make interactive elements above the overlay */
.report-details-btn,
.report-download-btn,
.report-card-title a,
.report-title a {
    position: relative;
    z-index: 2;
}

/* ============================================
   PAGINATION - SIMPLIFIED
   ============================================ */
.pagination-wrapper {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex-wrap: wrap;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--moif-blue-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

    .pagination-link:hover {
        background: var(--moif-gold);
        border-color: var(--moif-gold);
        color: var(--moif-white);
    }

    .pagination-link.active {
        background: var(--moif-blue-dark);
        border-color: var(--moif-blue-dark);
        color: var(--moif-white);
    }

.pagination-dots {
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0 6px;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state-wrapper {
    padding: 60px 20px;
    text-align: center;
    background: var(--moif-white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
    border: 2px dashed #e2e8f0;
    margin: 0 20px;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: transparent;
    border: 2px dashed #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .empty-icon i {
        font-size: 44px;
        color: #cbd5e1;
    }

.empty-state-content h3 {
    color: var(--moif-blue-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-state-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-empty-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--moif-gold);
    border: none;
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

    .btn-empty-action:hover {
        background: var(--moif-blue-dark);
    }

/* ============================================
   DETAILS PAGE - SIMPLIFIED & ENHANCED SPACING
   ============================================ */
.report-details-section {
    background: #f8fafc;
    padding: 60px 0;
}

.report-details-content {
    background: var(--moif-white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
    border: 1px solid #e2e8f0;
}

/* Enhanced Section Spacing */
.report-header-section {
    padding-bottom: 32px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 40px;
}

.report-meta-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.report-description-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.report-files-section {
    margin-bottom: 32px;
}

/* Add spacing to section containers */
.details-section-wrapper {
    margin-bottom: 40px;
}

    .details-section-wrapper:last-child {
        margin-bottom: 0;
    }

.report-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-type {
    background: var(--moif-gold);
    color: var(--moif-white);
}

.badge-category {
    background: var(--moif-blue-dark);
    color: var(--moif-white);
}

.badge-year {
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
    border: 1px solid var(--moif-gold);
}

.report-main-title {
    color: var(--moif-blue-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.report-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.meta-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    margin-bottom: 16px;
}

    .meta-card:hover {
        background: var(--moif-white);
        border-color: var(--moif-gold);
        transform: translateY(-2px);
    }

    .meta-card:last-child {
        margin-bottom: 0;
    }

.meta-icon {
    width: 50px;
    height: 50px;
    background: transparent;
    border: 2.5px solid var(--moif-blue-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

.meta-card:hover .meta-icon {
    border-color: var(--moif-gold);
    background: rgba(201, 162, 39, 0.05);
}

.meta-icon i {
    font-size: 24px;
    color: var(--moif-blue-dark);
    transition: color 0.3s;
}

.meta-card:hover .meta-icon i {
    color: var(--moif-gold);
}

.meta-content {
    flex: 1;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.meta-value {
    color: var(--moif-blue-dark);
    font-size: 14px;
    font-weight: 700;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--moif-blue-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--moif-gold);
}

.title-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2.5px solid var(--moif-gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .title-icon i {
        font-size: 20px;
        color: var(--moif-gold);
    }

.files-count-badge {
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--moif-gold);
}

.description-content {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    padding: 24px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 3px solid var(--moif-gold);
}

[dir="rtl"] .description-content {
    border-left: none;
    border-right: 3px solid var(--moif-gold);
}

.description-content p {
    margin-bottom: 16px;
}

    .description-content p:last-child {
        margin-bottom: 0;
    }

/* Action Buttons Section */
.report-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

.btn-back-reports {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--moif-blue-dark);
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-back-reports:hover {
        background: var(--moif-gold);
        color:   var(--moif-white);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.15);
    }

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.file-card {
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
}

    .file-card:hover {
        border-color: var(--moif-gold);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.12);
        transform: translateY(-2px);
    }

.file-card-header {
    padding: 20px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid;
    background: transparent;
    transition: all 0.3s;
}

.file-card:hover .file-type-icon {
    background: rgba(201, 162, 39, 0.05);
}

.file-type-icon i {
    font-size: 28px;
}

.file-type-pdf {
    border-color: #dc3545;
}

    .file-type-pdf i {
        color: #dc3545;
    }

.file-type-word {
    border-color: #007bff;
}

    .file-type-word i {
        color: #007bff;
    }

.file-type-excel {
    border-color: #28a745;
}

    .file-type-excel i {
        color: #28a745;
    }

.file-extension-badge {
    background: var(--moif-blue-dark);
    color: var(--moif-white);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.file-card-body {
    padding: 16px 20px;
}

.file-name {
    color: var(--moif-blue-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.file-size i {
    color: var(--moif-gold);
}

.file-card-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
}

.btn-file-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view {
    background: var(--moif-white);
    border: 1px solid var(--moif-blue-dark);
    color: var(--moif-blue-dark);
}

    .btn-view:hover {
        background: var(--moif-blue-dark);
        color: var(--moif-white);
    }

.btn-download {
    background: var(--moif-gold);
    border: 1px solid var(--moif-gold);
    color: var(--moif-white);
}

    .btn-download:hover {
        background: var(--moif-blue-dark);
        border-color: var(--moif-blue-dark);
    }

.btn-back-reports {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--moif-blue-dark);
    color: var(--moif-white);
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-back-reports:hover {
        background: var(--moif-gold);
    }

/* ============================================
   SIDEBAR - SIMPLIFIED
   ============================================ */
.report-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--moif-white);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(13, 27, 62, 0.08);
}

.widget-header {
    padding: 16px 20px;
    background: #f8fafc !important;
    border-bottom: 2px solid var(--moif-gold);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--moif-blue-dark) !important;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

    .widget-title i {
        font-size: 18px;
        color: var(--moif-gold);
    }

.sidebar-widget h3 {
    color: var(--moif-blue-dark) !important;
    font-size: 16px;
    font-weight: 700;
}

.widget-body {
    padding: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

    .info-label i {
        color: var(--moif-gold);
        font-size: 14px;
    }

.info-value {
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .stat-card {
        padding: 24px 20px;
    }

    .stat-icon {
        width: 56px;
        height: 56px;
    }

        .stat-icon i {
            font-size: 24px;
        }

    .stat-content h4 {
        font-size: 36px;
    }

    .stat-content span {
        font-size: 13px;
    }

    .report-details-content {
        padding: 28px 24px;
    }

    .files-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .report-sidebar {
        position: static;
        margin-top: 24px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .reports-stats-wrapper {
        margin-top: -30px;
        padding: 0 16px;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
    }

        .stat-icon i {
            font-size: 22px;
        }

    .stat-content h4 {
        font-size: 32px;
    }

    .stat-content span {
        font-size: 13px;
    }

    .reports-filter-section {
        padding: 20px 16px;
    }

    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }

    .results-info-bar {
        flex-direction: column;
        text-align: center;
    }

    .view-options {
        width: 100%;
        justify-content: center;
    }

    .report-card-footer {
        flex-direction: column;
    }

    .report-details-btn,
    .report-download-btn {
        width: 100%;
    }

    .report-download-btn {
        height: 44px;
    }

    .pagination-link.prev-link span,
    .pagination-link.next-link span {
        display: none;
    }

    .report-details-content {
        padding: 24px 20px;
    }

    .report-main-title {
        font-size: 24px;
    }

    .files-grid {
        grid-template-columns: 1fr;
    }

    .file-card-footer {
        flex-direction: column;
    }

    .btn-file-action {
        width: 100%;
    }

    .meta-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .stat-content h4 {
        font-size: 28px;
    }

    .filter-title-wrapper h5 {
        font-size: 18px;
    }

    .report-title a {
        font-size: 15px;
    }

    .report-main-title {
        font-size: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .stat-card::before {
    left: auto;
    right: 0;
}

/* Print & Accessibility */
@media print {
    .reports-filter-section,
    .results-info-bar,
    .pagination-wrapper,
    .report-sidebar,
    .btn-file-action {
        display: none;
    }

    .reports-stats-wrapper {
        margin-top: 0;
    }

    .stat-card,
    .file-card,
    .report-card {
        break-inside: avoid;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.btn-file-action:focus-visible,
.report-details-btn:focus-visible,
.report-download-btn:focus-visible,
.btn-back-reports:focus-visible {
    outline: 2px solid var(--moif-gold);
    outline-offset: 2px;
}

a:hover {
    color: var(--moif-white) !important;
}
.download-file-item i:first-child {
    color: var(--moif-gold);
}
.ri-file-chart-line:before {
    color: var(--moif-gold);
}
.ri-calendar-line:before {
    color: var(--moif-gold);
}
.ri-arrow-right-s-line:before {
    color: var(--moif-gold) !important;
}
/* ============================================
   DOWNLOAD FILES WIDGET STYLES
   ============================================ */
.widget-body {
    padding: 20px;
}

.widget-description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid var(--moif-gold);
}

[dir="rtl"] .widget-description {
    border-left: none;
    border-right: 3px solid var(--moif-gold);
}

.download-files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.download-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

    .download-file-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: transparent;
        transition: all 0.3s ease;
    }

    .download-file-item:hover {
        background: var(--moif-white);
        border-color: var(--moif-gold);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(13, 27, 62, 0.1);
    }

        .download-file-item:hover::before {
            background: var(--moif-gold);
        }

    /* File icon styling */
    .download-file-item i:first-child {
        font-size: 18px;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .download-file-item:hover i:first-child {
        transform: scale(1.1);
    }

    /* File icon colors based on type */
    .download-file-item .ri-file-pdf-line {
        color: #dc3545;
    }

    .download-file-item .ri-file-word-line,
    .download-file-item .ri-file-text-line {
        color: #007bff;
    }

    .download-file-item .ri-file-excel-line {
        color: #28a745;
    }

    .download-file-item .ri-file-ppt-line {
        color: #fd7e14;
    }

    .download-file-item .ri-file-zip-line,
    .download-file-item .ri-file-archive-line {
        color: #6c757d;
    }

    .download-file-item .ri-file-image-line,
    .download-file-item .ri-image-line {
        color: #e83e8c;
    }

    .download-file-item .ri-file-unknown-line {
        color: var(--moif-gold);
    }

/* File name with truncation */
.file-name-truncate {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-file-item:hover .file-name-truncate {
    color: var(--moif-gold);
}

/* Download icon */
.download-file-item .ri-download-2-line {
    font-size: 16px;
    color: #64748b;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.download-file-item:hover .ri-download-2-line {
    color: var(--moif-gold);
    opacity: 1;
    transform: translateY(-1px);
}

/* File size indicator (optional) */
.file-size-indicator {
    font-size: 11px;
    color: #94a3b8;
    background: rgba(13, 27, 62, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    font-weight: 600;
}

/* View more files link (if you add it) */
.view-more-files {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--moif-blue-dark);
    color: var(--moif-blue-dark);
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

    .view-more-files:hover {
        background: var(--moif-blue-dark);
        color: var(--moif-white);
        transform: translateY(-2px);
    }

/* RTL Support */
[dir="rtl"] .download-file-item::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .download-file-item {
    text-align: right;
}

[dir="rtl"] .file-size-indicator {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .widget-body {
        padding: 16px;
    }

    .download-file-item {
        padding: 10px 14px;
        font-size: 12px;
        gap: 10px;
    }

        .download-file-item i:first-child {
            font-size: 16px;
        }

    .file-name-truncate {
        font-size: 12px;
    }

    .download-file-item .ri-download-2-line {
        font-size: 14px;
    }
}

/* Animation for download click */
@keyframes downloadPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.download-file-item:active .ri-download-2-line {
    animation: downloadPulse 0.3s ease;
}

/* Loading state (optional) */
.download-file-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

    .download-file-item.loading .ri-download-2-line {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .widget-description {
        background: rgba(13, 27, 62, 0.3);
        color: rgba(255, 255, 255, 0.8);
    }

    .download-file-item {
        background: rgba(13, 27, 62, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }

        .download-file-item:hover {
            background: rgba(13, 27, 62, 0.4);
            border-color: var(--moif-gold);
        }

    .file-size-indicator {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.7);
    }

    .view-more-files {
        border-color: var(--moif-gold);
        color: var(--moif-gold);
    }

        .view-more-files:hover {
            background: var(--moif-gold);
            color: var(--moif-blue-dark);
        }
}
/* ============================================
   CARD OVERLAY & BUTTON FIXES
   ============================================ */

/* Make entire card clickable */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Ensure buttons are above the overlay */
.report-details-btn,
.report-download-btn {
    position: relative;
    z-index: 2 !important;
}

/* Remove pointer events from text elements to allow card click */
.report-card-title,
.report-category,
.report-authority,
.report-files-count,
.report-date {
    pointer-events: none;
}

/* Button hover state - white text */
.report-details-btn:hover {
    background: var(--moif-gold);
    color: var(--moif-white) !important;
}

/* Optional: Add hover effect for card */
.report-card:hover .card-link-overlay {
    background: rgba(201, 162, 39, 0.05);
}

/* Fix for z-index classes */
.z-index-2 {
    z-index: 2 !important;
}

/* Make sure badges and icons are also above overlay */
.report-type-badge,
.report-year {
    position: relative;
    z-index: 2;
}

/* Optional: Add cursor pointer to card */
.report-card {
    cursor: pointer;
}

/* ============================================
   REPORT CARD FOOTER - SECOND ROW
   ============================================ */

.report-card-footer {
    padding: 12px 16px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    min-height: 52px;
}

    /* For the second footer (files count and date) */
    .report-card-footer:last-of-type {
        padding: 10px 16px;
        background: #f8fafc;
        border-top: 1px solid #e2e8f0;
        border-bottom: none;
        font-size: 11px;
        min-height: 44px;
    }

.report-files-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 600;
    background: rgba(13, 27, 62, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    pointer-events: none; /* To prevent interference with card click */
}

.report-card:hover .report-files-count {
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
}

.report-files-count i {
    font-size: 13px;
    color: var(--moif-gold);
    transition: all 0.3s ease;
}

.report-card:hover .report-files-count i {
    color: var(--moif-gold);
    transform: scale(1.1);
}

.report-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 600;
    background: rgba(13, 27, 62, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    pointer-events: none; /* To prevent interference with card click */
}

.report-card:hover .report-date {
    background: rgba(13, 27, 62, 0.1);
    color: var(--moif-blue-dark);
}

/* Optional: Add icon to date */
.report-date::before {
    content: '\f1ac'; /* Calendar icon */
    font-family: 'remixicon';
    font-size: 12px;
    color: var(--moif-blue-dark);
    transition: all 0.3s ease;
}

.report-card:hover .report-date::before {
    color: var(--moif-gold);
}

/* Alternative: If you prefer a simpler design */
.report-card-footer:last-of-type {
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-top: 1px dashed #e2e8f0;
}

/* RTL Support */
[dir="rtl"] .report-files-count i,
[dir="rtl"] .report-date i {
    margin-right: 0;
    margin-left: 6px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .report-card-footer:last-of-type {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .report-files-count,
    .report-date {
        font-size: 10px;
        padding: 3px 8px;
    }

        .report-files-count i {
            font-size: 11px;
        }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .report-card-footer:last-of-type {
        background: rgba(13, 27, 62, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .report-files-count,
    .report-date {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
    }

    .report-card:hover .report-files-count {
        background: rgba(201, 162, 39, 0.2);
        color: var(--moif-gold-bright);
    }

    .report-card:hover .report-date {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9);
    }
}











/* authority-reports.css - Combined Authority & Reports Design */

/* ============================================
   COMBINED DESIGN VARIABLES
   ============================================ */
:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.06);
    --shadow-md: 0 4px 16px rgba(13, 27, 62, 0.08);
    --shadow-lg: 0 8px 24px rgba(13, 27, 62, 0.12);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 15px;
}

/* ============================================
   COMBINED AUTHORITY HEADER
   ============================================ */
.combined-authority-header {
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
    padding: 50px 0 30px;
    margin-bottom: 40px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    color: var(--moif-white);
    position: relative;
    overflow: hidden;
}

    .combined-authority-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
        background-size: cover;
    }

.authority-header-content {
    position: relative;
    z-index: 1;
}

/* Authority Logo */
.authority-logo-container {
    background: var(--moif-white);
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: 0 8px 25px rgba(13, 27, 62, 0.15);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .authority-logo-container:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(13, 27, 62, 0.2);
    }

    .authority-logo-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

/* Authority Title Section */
.authority-title-section {
    text-align: center;
    margin-bottom: 20px;
}

.authority-title-ar {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--moif-white);
}

.authority-title-en {
    font-size: 18px;
    color: var(--moif-gold-bright);
    margin-bottom: 15px;
    direction: ltr;
}

.authority-description {
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Authority Stats Grid */
.authority-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-card-combined {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

    .stat-card-combined:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        border-color: var(--moif-gold);
    }

    .stat-card-combined .stat-icon {
        width: 50px;
        height: 50px;
        background: var(--moif-gold);
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
    }

        .stat-card-combined .stat-icon i {
            font-size: 24px;
            color: var(--moif-white);
        }

    .stat-card-combined .stat-number {
        font-size: 28px;
        font-weight: 700;
        color: var(--moif-white);
        margin-bottom: 5px;
    }

    .stat-card-combined .stat-label {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.8);
    }

/* ============================================
   COMBINED FILTER SECTION
   ============================================ */
.combined-filter-section {
    background: var(--moif-white);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-header-combined {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--moif-gold);
}

.filter-title-combined {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .filter-title-combined i {
        font-size: 24px;
        color: var(--moif-gold);
    }

    .filter-title-combined h4 {
        margin: 0;
        color: var(--moif-blue-dark);
        font-weight: 600;
    }

.combined-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group-combined label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--moif-blue-dark);
    font-weight: 600;
    font-size: 14px;
}

    .filter-group-combined label i {
        color: var(--moif-gold);
        font-size: 16px;
    }

.filter-select-combined {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--moif-white);
    color: var(--moif-blue-dark);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

    .filter-select-combined:focus {
        outline: none;
        border-color: var(--moif-gold);
        box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
    }

/* Active Filters Display */
.active-filters-display {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.active-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--moif-blue-dark);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

    .active-label i {
        color: var(--moif-gold);
        font-size: 14px;
    }

.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--moif-blue-dark);
    color: var(--moif-white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

    .filter-badge:hover {
        background: #dc3545;
        color: var(--moif-white);
        transform: translateY(-2px);
    }

    .filter-badge i {
        font-size: 14px;
    }

    .filter-badge .ri-close-line {
        margin-left: 4px;
        opacity: 0.8;
    }

    .filter-badge:hover .ri-close-line {
        opacity: 1;
    }

/* ============================================
   RESULTS COUNT & SORTING
   ============================================ */
.results-count-combined {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.count-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--moif-blue-dark);
    font-weight: 600;
}

    .count-text i {
        color: var(--moif-gold);
        font-size: 20px;
    }

.sorting-options {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-label {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
}

.sort-select {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background: var(--moif-white);
    color: var(--moif-blue-dark);
    font-size: 14px;
    transition: var(--transition);
    min-width: 160px;
}

    .sort-select:focus {
        outline: none;
        border-color: var(--moif-gold);
    }

/* ============================================
   COMBINED REPORTS GRID
   ============================================ */
.reports-grid-combined {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .reports-grid-combined {
        grid-template-columns: 1fr;
    }
}

/* Report Card */
.report-card-combined {
    background: var(--moif-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .report-card-combined:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--moif-gold);
    }

/* Card Header */
.report-card-header-combined {
    background: var(--moif-blue-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-type-badge-combined {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .report-type-badge-combined i {
        color: var(--moif-gold-bright);
        font-size: 16px;
    }

.badge-combined {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-trade {
    background: rgba(255, 255, 255, 0.2);
    color: var(--moif-white);
}

.badge-investment {
    background: rgba(244, 208, 63, 0.2);
    color: var(--moif-gold-bright);
}

.badge-freezones {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.badge-other {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
}

.report-year-combined {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--moif-white);
    font-weight: 600;
    font-size: 14px;
}

    .report-year-combined i {
        color: var(--moif-gold-bright);
    }

/* Card Body */
.report-card-body-combined {
    padding: 20px;
    flex: 1;
}

.report-category-combined {
    display: inline-block;
    background: rgba(201, 162, 39, 0.1);
    color: var(--moif-gold);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
}

.report-title-combined {
    margin-bottom: 15px;
}

    .report-title-combined a {
        color: var(--moif-blue-dark);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        text-decoration: none;
        transition: var(--transition);
        display: block;
    }

.report-card-combined:hover .report-title-combined a {
    color: var(--moif-gold);
}

.report-description-combined {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-authority-combined {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

    .report-authority-combined i {
        color: var(--moif-gold);
    }

.report-meta-combined {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.report-files-combined,
.report-date-combined {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .report-files-combined i,
    .report-date-combined i {
        color: var(--moif-gold);
        font-size: 14px;
    }

/* Card Footer */
.report-card-footer-combined {
    padding: 15px 20px;
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.btn-view-combined,
.btn-download-combined {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-view-combined {
    background: var(--moif-blue-dark);
    color: var(--moif-white);
}

    .btn-view-combined:hover {
        background: var(--moif-blue);
        transform: translateY(-2px);
    }

.btn-download-combined {
    background: var(--moif-gold);
    color: var(--moif-white);
}

    .btn-download-combined:hover {
        background: var(--moif-gold-bright);
        transform: translateY(-2px);
    }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state-combined {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--moif-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px dashed var(--border-color);
}

.empty-icon-combined {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

    .empty-icon-combined i {
        font-size: 36px;
        color: var(--text-muted);
    }

.empty-state-combined h4 {
    font-size: 20px;
    color: var(--moif-blue-dark);
    margin-bottom: 10px;
}

.empty-state-combined p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 20px;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-combined {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.page-link-combined {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--moif-white);
    border: 1px solid var(--border-color);
    color: var(--moif-blue-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

    .page-link-combined:hover:not(.disabled):not(.active) {
        background: var(--moif-gold);
        border-color: var(--moif-gold);
        color: var(--moif-white);
        transform: translateY(-2px);
    }

    .page-link-combined.active {
        background: var(--moif-blue-dark);
        border-color: var(--moif-blue-dark);
        color: var(--moif-white);
    }

    .page-link-combined.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .page-link-combined.disabled:hover {
            background: var(--moif-white);
            border-color: var(--border-color);
            color: var(--moif-blue-dark);
            transform: none;
        }

/* ============================================
   BACK SECTION
   ============================================ */
.back-section {
    padding: 40px 0;
    background: var(--light-bg);
    margin-top: 40px;
}

/* ============================================
   BUTTON STYLES (Reused from authorities.css)
   ============================================ */
.btn-gold-modern {
    background: linear-gradient(45deg, var(--moif-gold), var(--moif-gold-bright), #FFE14F, var(--moif-gold-bright), var(--moif-gold));
    background-size: 300% 300%;
    color: var(--moif-blue-dark);
    border: 2px solid rgba(255, 225, 79, 0.3);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .btn-gold-modern:hover {
        background-position: 100% 50%;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(201, 162, 39, 0.3), 0 0 20px rgba(244, 208, 63, 0.2);
        border-color: rgba(255, 225, 79, 0.6);
        color: var(--moif-blue-dark);
    }

.btn-gold-minimal {
    background: var(--moif-blue-dark);
    color: var(--moif-gold-bright);
    border: 2px solid var(--moif-gold);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-gold-minimal:hover {
        background: var(--moif-gold);
        color: var(--moif-blue-dark);
        border-color: var(--moif-gold-bright);
        box-shadow: 0 0 20px rgba(244, 208, 63, 0.3);
        transform: translateY(-2px);
    }

.btn-gold-luxury {
    background: linear-gradient(135deg, var(--moif-gold) 0%, var(--moif-gold-bright) 30%, #FFE14F 70%, var(--moif-gold) 100%);
    color: var(--moif-blue-dark);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3), 0 0 0 1px rgba(255, 225, 79, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
    z-index: 1;
}

    .btn-gold-luxury:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 30px rgba(201, 162, 39, 0.4), 0 0 0 1px rgba(255, 225, 79, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
        color: var(--moif-blue-dark);
        background: linear-gradient(135deg, var(--moif-gold-bright) 0%, #FFE14F 30%, #FFEC70 70%, var(--moif-gold-bright) 100%);
    }

.btn-dark-blue {
    background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
    color: var(--moif-white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(13, 27, 62, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn-dark-blue:hover {
        background: linear-gradient(135deg, var(--moif-blue) 0%, var(--moif-blue-dark) 100%);
        color: var(--moif-white);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(13, 27, 62, 0.3);
    }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .authority-title-ar {
        font-size: 28px;
    }

    .authority-title-en {
        font-size: 16px;
    }

    .authority-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reports-grid-combined {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .combined-authority-header {
        padding: 40px 0 20px;
    }

    .authority-title-ar {
        font-size: 24px;
    }

    .authority-description {
        font-size: 14px;
    }

    .authority-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card-combined {
        padding: 15px;
    }

    .combined-filter-section {
        padding: 20px;
    }

    .filter-header-combined {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .combined-filter-grid {
        grid-template-columns: 1fr;
    }

    .results-count-combined {
        flex-direction: column;
        align-items: flex-start;
    }

    .sorting-options {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .authority-logo-container {
        width: 100px;
        height: 100px;
    }

    .authority-title-ar {
        font-size: 22px;
    }

    .report-card-combined {
        margin: 0 10px;
    }

    .report-card-footer-combined {
        flex-direction: column;
    }

    .btn-view-combined,
    .btn-download-combined {
        width: 100%;
    }

    .pagination-combined {
        gap: 5px;
    }

    .page-link-combined {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* RTL Support */
[dir="rtl"] .filter-badge .ri-close-line {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .report-type-badge-combined i,
[dir="rtl"] .report-year-combined i {
    transform: scaleX(-1);
}

/* Print Styles */
@media print {
    .combined-authority-header {
        background: none !important;
        color: #000 !important;
    }

    .combined-filter-section,
    .results-count-combined,
    .report-card-footer-combined,
    .back-section {
        display: none !important;
    }

    .reports-grid-combined {
        display: block !important;
    }

    .report-card-combined {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin-bottom: 20px !important;
    }
}