/* ========================================
   REPORTS.CSS - Reports page
   ======================================== */

.summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.summary-card h4 {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
}

.summary-value {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.full-width {
    grid-column: span 2;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.report-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.report-table tr:hover {
    background: #f8fafc;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.export-btn:nth-child(1) {
    background: #ef4444;
    color: white;
}

.export-btn:nth-child(2) {
    background: #22c55e;
    color: white;
}

.export-btn:nth-child(3) {
    background: #3b82f6;
    color: white;
}

.export-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Date Range */
.date-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-range label {
    font-size: 13px;
    color: #64748b;
}

.date-input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: white;
}

.apply-btn {
    margin-top: 10px;
    padding: 10px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.apply-btn:hover {
    background: #2563eb;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .full-width {
        grid-column: span 1;
    }
    
    .summary-value {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 15px;
    }
    
    .summary-card h4 {
        font-size: 12px;
    }
    
    .summary-value {
        font-size: 22px;
    }
    
    .report-table th,
    .report-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .export-btn {
        padding: 10px;
        font-size: 12px;
    }
    
    .date-input {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats-card {
        padding: 15px;
    }
    
    .stats-card h3 {
        font-size: 16px;
    }
    
    .summary-value {
        font-size: 18px;
    }
    
    .report-table th,
    .report-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .export-btn {
        padding: 8px;
        font-size: 11px;
        gap: 6px;
    }
    
    .date-range label {
        font-size: 12px;
    }
    
    .date-input {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .apply-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

body.dark-mode .summary-card {
    background: #1e293b;
    color: #f1f5f9;
}

body.dark-mode .summary-card h4 {
    color: #94a3b8;
}

body.dark-mode .summary-value {
    color: #f1f5f9;
}

body.dark-mode .report-table th {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark-mode .report-table td {
    border-bottom-color: #334155;
    color: #94a3b8;
}

body.dark-mode .report-table tr:hover {
    background: #1e293b;
}

body.dark-mode .report-table tr:hover td {
    color: #f1f5f9;
}

body.dark-mode .date-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.dark-mode .date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}