/* Kimutatások (Reports) Page Styles */

/* Date Range Selector */
.date-range-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    margin: 0;
}

.date-range-selector input[type="date"] {
    width: 150px;
}

/* Report Tabs */
.report-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #49ab7c;
    background-color: rgba(73, 171, 124, 0.05);
}

.tab-btn.active {
    color: #49ab7c;
    border-bottom-color: #49ab7c;
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* KPI Card */
.kpi-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kpi-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.kpi-card-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.kpi-card-icon.revenue {
    background-color: rgba(73, 171, 124, 0.1);
    color: #49ab7c;
}

.kpi-card-icon.projects {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.kpi-card-icon.sales {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.kpi-card-icon.inventory {
    background-color: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.kpi-card-icon.deliveries {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.kpi-card-icon.financial {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.kpi-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.kpi-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.kpi-change.positive {
    color: #27ae60;
}

.kpi-change.negative {
    color: #e74c3c;
}

.kpi-change.neutral {
    color: #95a5a6;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-card.full-width {
    grid-column: 1 / -1;
}

.chart-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.chart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header h3 i {
    color: #49ab7c;
}

.chart-body {
    position: relative;
    min-height: 300px;
}

.chart-body canvas {
    max-height: 400px;
}

/* Report Section */
.report-section {
    margin-bottom: 40px;
}

.report-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-section h2 i {
    color: #49ab7c;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #49ab7c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
    color: #2980b9;
}

.alert i {
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .date-range-selector {
        flex-wrap: wrap;
    }
    
    .date-range-selector input[type="date"] {
        width: 100%;
    }
    
    .report-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Report Summary Cards */
.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.summary-card h4 {
    margin: 0 0 10px 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
}

/* Report Tables */
.report-table-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.report-table-container h3 {
    margin: 0 0 20px 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

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

.report-table thead {
    background-color: #f5f5f5;
}

.report-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.report-table tbody tr:hover {
    background-color: #f9f9f9;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

/* Report Info */
.report-info {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.report-info a {
    color: #49ab7c;
    text-decoration: none;
    font-weight: 500;
}

.report-info a:hover {
    text-decoration: underline;
}

