/* ========================================
   REPORTS DASHBOARD - LIGHT MODE THEME
   Tema Terang & Responsif Mobile
   ======================================== */

/* ========================================
   STATS CARDS
   ======================================== */
.stats-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #007bff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.stats-card.success {
    border-left-color: #28a745;
}

.stats-card.warning {
    border-left-color: #ffc107;
}

.stats-card.danger {
    border-left-color: #dc3545;
}

.stats-card.info {
    border-left-color: #17a2b8;
}

.stats-card.primary {
    border-left-color: #007bff;
}

.stats-card.secondary {
    border-left-color: #6c757d;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ========================================
   CHART CONTAINER
   ======================================== */
.chart-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    color: #212529;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
}

.section-title i {
    font-size: 1rem;
}

/* ========================================
   DATE FILTER
   ======================================== */
.date-filter {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.date-filter .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 0.4rem;
}

.date-filter .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: #ffffff;
    color: #212529;
}

.date-filter .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    outline: none;
}

.date-filter .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.date-filter .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ========================================
   EXPORT BUTTONS
   ======================================== */
.export-buttons {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-export {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TABLE STYLING
   ======================================== */
.table {
    font-size: 0.9rem;
}

.table thead th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.85rem;
    padding: 0.75rem;
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: #212529;
}

.table-sm thead th,
.table-sm tbody td {
    padding: 0.5rem;
    font-size: 0.85rem;
}

.badge {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
}

/* ========================================
   HEADER & TOOLBAR
   ======================================== */
.content-wrapper h1.h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.btn-toolbar .btn-group .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* ========================================
   RESPONSIVE - TABLET (< 992px)
   ======================================== */
@media (max-width: 991px) {
    .stats-number {
        font-size: 1.75rem;
    }

    .stats-label {
        font-size: 0.8rem;
    }

    .stats-card {
        padding: 1rem;
    }

    .chart-container {
        padding: 1rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .export-buttons {
        justify-content: flex-start;
    }

    .btn-export {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (< 768px)
   ======================================== */
@media (max-width: 768px) {
    /* Header */
    .content-wrapper h1.h2 {
        font-size: 1.25rem;
    }

    .btn-toolbar {
        width: 100%;
        margin-top: 0.5rem;
    }

    .btn-toolbar .btn-group {
        width: 100%;
        margin-right: 0 !important;
    }

    .btn-toolbar .btn-group .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }

    /* Date Filter - 2 Grid */
    .date-filter .row {
        gap: 0.75rem;
    }

    .date-filter .col-md-4 {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .date-filter .form-label {
        font-size: 0.8rem;
    }

    .date-filter .form-control {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }

    .date-filter .btn-primary {
        width: 100%;
        font-size: 0.85rem;
    }

    /* Export Buttons - 2 Grid */
    .export-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .btn-export {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
        margin: 0;
    }

    .btn-export i {
        font-size: 0.75rem;
    }

    /* Stats Cards - 2 Grid */
    .row > [class*="col-md"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .stats-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.75rem;
    }

    .stats-card .mt-2 small {
        font-size: 0.75rem;
    }

    /* Chart Container */
    .chart-container {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
    }

    .section-title i {
        font-size: 0.9rem;
    }

    /* Table */
    .table-responsive {
        font-size: 0.75rem;
    }

    .table-sm thead th,
    .table-sm tbody td {
        padding: 0.4rem;
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
    }

    /* Tourism & Complaints Stats Grid */
    .chart-container .row .col-6 {
        padding: 0.5rem;
    }

    .chart-container .row .col-6 .stats-number {
        font-size: 1.25rem;
    }

    .chart-container .row .col-6 .stats-label {
        font-size: 0.7rem;
    }
}

/* ========================================
   RESPONSIVE - VERY SMALL MOBILE (< 480px)
   ======================================== */
@media (max-width: 480px) {
    /* Header */
    .content-wrapper h1.h2 {
        font-size: 1.1rem;
    }

    .btn-toolbar .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.4rem;
    }

    /* Date Filter */
    .date-filter {
        padding: 0.75rem;
    }

    .date-filter .form-label {
        font-size: 0.75rem;
    }

    .date-filter .form-control {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    /* Export Buttons - 1 Grid Full Width */
    .export-buttons {
        grid-template-columns: 1fr;
    }

    /* Stats Cards - 1 Grid */
    .row > [class*="col-md"] {
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .stats-card {
        padding: 0.65rem;
        margin-bottom: 0.5rem;
    }

    .stats-number {
        font-size: 1.3rem;
    }

    .stats-label {
        font-size: 0.7rem;
    }

    /* Chart Container */
    .chart-container {
        padding: 0.65rem;
    }

    .section-title {
        font-size: 0.9rem;
    }

    /* Table */
    .table-sm thead th,
    .table-sm tbody td {
        padding: 0.3rem;
        font-size: 0.7rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.35rem;
    }

    /* Tourism Stats */
    .chart-container .row .col-6 .stats-number {
        font-size: 1.1rem;
    }

    .chart-container .row .col-6 .stats-label {
        font-size: 0.65rem;
    }
}

/* ========================================
   BOOTSTRAP RESPONSIVE GRID OVERRIDE
   ======================================== */
@media (max-width: 768px) {
    /* Force 2-column grid on mobile for stats cards */
    .row > .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Force 1-column for charts on mobile */
    .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .row > .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Force 1-column grid on very small mobile */
    .row > .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ========================================
   FORCE LIGHT MODE - NO DARK MODE
   ======================================== */
@media (prefers-color-scheme: dark) {
    .stats-card,
    .chart-container,
    .date-filter {
        background: #ffffff !important;
        color: #212529 !important;
    }

    .stats-number,
    .section-title {
        color: #212529 !important;
    }

    .stats-label {
        color: #6c757d !important;
    }

    .form-control {
        background: #ffffff !important;
        color: #212529 !important;
        border-color: #e9ecef !important;
    }

    .table thead th,
    .table tbody td {
        color: #212529 !important;
        background: #ffffff !important;
    }

    .content-wrapper {
        background: #f8f9fa !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d !important;
}

/* Color utilities */
.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }
.text-primary { color: #007bff !important; }
.text-secondary { color: #6c757d !important; }

/* Badge colors */
.badge-success { background-color: #28a745; }
.badge-danger { background-color: #dc3545; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; }
.badge-primary { background-color: #007bff; }
.badge-secondary { background-color: #6c757d; }

