/* Report Type Cards */
.report-type-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 0.35rem 1.2rem rgba(15, 23, 42, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.25);
    height: 100%;
}

.report-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.15);
    border-color: var(--primary-color);
}

.report-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), #e67e00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.report-type-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.report-type-card p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* KPI Boxes */
.kpi-box {
    background: var(--light-bg);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    height: 100%;
}

.kpi-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--primary-color), #e67e00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kpi-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.kpi-trend {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.kpi-trend.up {
    color: var(--success-color);
}

.kpi-trend.down {
    color: var(--danger-color);
}

.kpi-trend i {
    margin-right: 0.3rem;
}

/* Report Sections */
.report-section {
    display: none;
}

.report-section.active {
    display: block;
}

/* Charts */
canvas {
    max-height: 400px;
}

/* Table Enhancements */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), #e67e00);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
}

.table tbody tr {
    transition: background 0.3s;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

/* Filters Card */
.card-header {
    background: linear-gradient(135deg, var(--primary-color), #e67e00);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
}

.card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-header i {
    margin-right: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Labels */
label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: block;
}

/* Top Bar Actions */
.top-bar-actions {
    display: flex;
    gap: 0.5rem;
}

.top-bar-actions .btn {
    font-size: 0.9rem;
}

/* Export Buttons */
.btn-success {
    background: #28a745;
    border: none;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    border: none;
}

.btn-danger:hover {
    background: #c82333;
}

/* Section Titles */
h6 {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .report-type-card {
        margin-bottom: 1rem;
    }

    .kpi-box {
        margin-bottom: 1rem;
    }

    .top-bar-actions {
        flex-direction: column;
        width: 100%;
    }

    .top-bar-actions .btn {
        width: 100%;
    }

    .kpi-value {
        font-size: 2rem;
    }

    .report-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .top-bar,
    .filters-bar,
    .top-bar-actions,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .table {
        font-size: 0.9rem;
    }
}
