/* ============================================
   AUTHORITY REPORTS PAGE - ENHANCED CSS
   Modern, Professional Design
   ============================================ */

/* Base Variables */
:root {
    --moif-blue-dark: #0D1B3E;
    --moif-blue: #1A2B4A;
    --moif-gold: #C9A227;
    --moif-gold-bright: #F4D03F;
    --moif-white: #FFFFFF;
    --light-bg: #f8f9fa;
    --border-color: #e2e8f0;
    --text-primary: #0D1B3E;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.06);
    --shadow-md: 0 4px 16px rgba(13, 27, 62, 0.1);
    --shadow-lg: 0 8px 24px rgba(13, 27, 62, 0.15);
    --shadow-xl: 0 20px 40px rgba(13, 27, 62, 0.2);
}

 /* ============================================
   SERVICES AREA / REPORTS SECTION
   ============================================ */
.services-area {
    background: linear-gradient(180deg, #f8fafc 0%, var(--moif-white) 100%);
    position: relative;
}

.ptb-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* ============================================
   AUTHORITY HEADER - PREMIUM DESIGN
   ============================================ */
.authority-header {
    background: var(--moif-blue-dark);
    padding: 50px;
    border-radius: 20px;
    color: var(--moif-white);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    /* Decorative Background Elements */
    .authority-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .authority-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(244, 208, 63, 0.05) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .authority-header .row {
        position: relative;
        z-index: 1;
    }

    .authority-header h2 {
        font-size: 36px;
        font-weight: 800;
        color: var(--moif-white);
        margin-bottom: 10px;
        line-height: 1.3;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .authority-header .text-muted {
        color: var(--moif-gold-bright) !important;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 0;
        opacity: 0.95;
        font-style: italic;
    }

    .authority-header p {
        color: rgba(255, 255, 255, 0.92);
        line-height: 1.8;
        margin-top: 20px;
        font-size: 16px;
        max-width: 800px;
    }

/* Enhanced Logo Container */
.authority-logo {
    background: var(--moif-white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: inline-block;
    position: relative;
}

    .authority-logo::before {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--moif-gold), var(--moif-gold-bright));
        border-radius: 16px;
        z-index: -1;
        opacity: 0.3;
    }

/* ============================================
   BUTTONS - ENHANCED
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
    }

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--moif-white);
    border: 2px solid var(--moif-gold);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
    backdrop-filter: blur(10px);
}

    .btn-outline-primary:hover {
        background: var(--moif-gold);
        color: var(--moif-white);
        border-color: var(--moif-gold-bright);
        box-shadow: 0 6px 25px rgba(201, 162, 39, 0.4);
        transform: translateY(-2px);
    }

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
}

.default-btn {
    background: linear-gradient(135deg, var(--moif-gold) 0%, var(--moif-gold-bright) 100%);
    color: var(--moif-white);
    border: none;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .default-btn:hover {
        background: linear-gradient(135deg, var(--moif-gold-bright) 0%, var(--moif-gold) 100%);
        color: var(--moif-white);
        box-shadow: 0 6px 25px rgba(201, 162, 39, 0.5);
        transform: translateY(-3px);
    }

.btn i {
    font-size: 18px;
}

/* ============================================
   FILTERS - PREMIUM DESIGN
   ============================================ */
.reports-filter {
    background: var(--moif-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    box-shadow: var(--shadow-md);
    position: relative;
}

    .reports-filter::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--moif-gold) 0%, var(--moif-gold-bright) 50%, var(--moif-gold) 100%);
        border-radius: 16px 16px 0 0;
    }

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--moif-blue-dark);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .form-label::before {
        content: '';
        width: 3px;
        height: 16px;
        background: var(--moif-gold);
        border-radius: 3px;
    }

.form-select {
    width: 100%;
    padding: 14px 18px;
    background: var(--moif-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    color: var(--moif-blue-dark);
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(13, 27, 62, 0.03);
}

    .form-select:focus {
        outline: none;
        border-color: var(--moif-gold);
        box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.12);
        background: #fffef8;
    }

    .form-select option {
        padding: 10px;
    }

/* ============================================
   RESULTS COUNT - ENHANCED
   ============================================ */
.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-md-0 {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .mb-md-0 {
        margin-bottom: 0 !important;
    }
}

/* Enhanced Results Info */
.d-flex.justify-content-between.align-items-center.mb-4 {
    background: linear-gradient(135deg, #f8fafc 0%, var(--moif-white) 100%);
    padding: 18px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

    .d-flex.justify-content-between.align-items-center.mb-4 p {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
    }

        .d-flex.justify-content-between.align-items-center.mb-4 p i {
            font-size: 22px;
            color: var(--moif-gold);
        }

        .d-flex.justify-content-between.align-items-center.mb-4 p strong {
            color: var(--moif-blue-dark);
            font-size: 18px;
            font-weight: 800;
        }

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.g-3 {
    gap: 1rem;
}

.col-lg-4,
.col-md-6,
.col-md-2,
.col-md-10,
.col-12 {
    padding-right: 15px;
    padding-left: 15px;
    position: relative;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* ============================================
   EMPTY STATE - PREMIUM DESIGN
   ============================================ */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.text-center.py-5 {
    background: var(--moif-white);
    border-radius: 20px;
    padding: 80px 40px !important;
    box-shadow: var(--shadow-md);
    border: 2px dashed var(--border-color);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, var(--light-bg) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px dashed var(--border-color);
    position: relative;
}

    .empty-state-icon::before {
        content: '';
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        background: linear-gradient(135deg, rgba(201, 162, 39, 0.05), rgba(244, 208, 63, 0.05));
        z-index: -1;
    }

    .empty-state-icon i {
        font-size: 48px;
        color: var(--moif-gold);
        opacity: 0.6;
    }

.text-center h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--moif-blue-dark);
    margin-top: 25px;
    margin-bottom: 12px;
}

.text-center p.text-muted {
    font-size: 16px;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 30px;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================
   PAGINATION - ENHANCED
   ============================================ */
.pagination-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    background: var(--moif-white);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--moif-blue-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}

    .page-numbers:hover {
        background: var(--moif-gold);
        border-color: var(--moif-gold);
        color: var(--moif-white);
        box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
        transform: translateY(-2px);
    }

    .page-numbers.current {
        background: linear-gradient(135deg, var(--moif-blue-dark) 0%, var(--moif-blue) 100%);
        border-color: var(--moif-blue-dark);
        color: var(--moif-white);
        box-shadow: 0 4px 15px rgba(13, 27, 62, 0.3);
    }

.prev.page-numbers,
.next.page-numbers {
    min-width: 48px;
    font-weight: 700;
}

    .prev.page-numbers i,
    .next.page-numbers i {
        font-size: 20px;
    }

    .prev.page-numbers:hover,
    .next.page-numbers:hover {
        background: var(--moif-blue-dark);
        border-color: var(--moif-blue-dark);
        color: var(--moif-white);
    }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.me-1 {
    margin-right: 0.25rem !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .page-title-content h2 {
        font-size: 36px;
    }

    .authority-header {
        padding: 40px 35px;
    }

        .authority-header h2 {
            font-size: 30px;
        }
}

@media (max-width: 768px) {
    .page-title-area {
        padding: 60px 0 40px;
    }

    .page-title-content h2 {
        font-size: 28px;
    }

    .authority-header {
        padding: 35px 25px;
    }

        .authority-header h2 {
            font-size: 24px;
        }

        .authority-header .text-muted {
            font-size: 16px;
        }

        .authority-header p {
            font-size: 15px;
        }

    .reports-filter {
        padding: 25px 20px;
    }

    .ptb-100 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .text-center.py-5 {
        padding: 60px 30px !important;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
    }

        .empty-state-icon i {
            font-size: 40px;
        }

    .text-center h4 {
        font-size: 24px;
    }

    .pagination-area {
        margin-top: 40px;
        padding-top: 30px;
    }
}

@media (max-width: 576px) {
    .page-title-area {
        padding: 50px 0 30px;
    }

    .page-title-content h2 {
        font-size: 24px;
    }

    .page-title-content ul {
        font-size: 13px;
    }

    .authority-header {
        padding: 25px 20px;
        border-radius: 16px;
    }

        .authority-header h2 {
            font-size: 22px;
        }

    .authority-logo {
        max-width: 100px !important;
        max-height: 100px !important;
        padding: 15px;
    }

    .reports-filter {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .form-select {
        padding: 12px 15px;
        font-size: 14px;
    }

    .page-numbers {
        min-width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .text-center.py-5 {
        padding: 50px 20px !important;
    }

    .empty-state-icon {
        width: 90px;
        height: 90px;
    }

        .empty-state-icon i {
            font-size: 36px;
        }

    .text-center h4 {
        font-size: 22px;
    }

    .text-center p.text-muted {
        font-size: 15px;
    }
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

[dir="rtl"] .page-title-content ul li::after {
    margin: 0 12px;
}

[dir="rtl"] .form-label::before {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] .btn i {
    transform: scaleX(-1);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.btn:focus-visible,
.form-select:focus-visible,
.page-numbers:focus-visible {
    outline: 3px solid var(--moif-gold);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .page-title-area,
    .reports-filter,
    .pagination-area,
    .btn {
        display: none !important;
    }

    .services-area {
        padding: 0 !important;
        background: var(--moif-white) !important;
    }

    .authority-header {
        background: none !important;
        color: #000 !important;
        border: 2px solid #ccc;
        box-shadow: none !important;
        padding: 30px !important;
    }

        .authority-header h2,
        .authority-header p {
            color: #000 !important;
        }

        .authority-header .text-muted {
            color: #666 !important;
        }

        .authority-header::before,
        .authority-header::after {
            display: none;
        }
}
