/* Отчеттар беті стильдері */

.reports-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Сол жақ панель - Отчеттар менюсы */
.reports-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.reports-sidebar h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.reports-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.report-item {
    padding: 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.report-item.active {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
    color: #ffffff;
    font-weight: bold;
}

.report-item i {
    font-size: 1.2em;
}

/* Оң жақ панель - Отчет мазмұны */
.reports-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-section {
    display: none;
}

.report-section.active {
    display: block;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.report-header h2 {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.period-select {
    padding: 8px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.period-select option {
    background: #2a5298;
    color: #ffffff;
}

/* Тексттік отчет */
.text-report {
    color: #e0e0e0;
    line-height: 1.8;
}

.report-meta {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #4ecdc4;
}

.report-meta p {
    margin: 8px 0;
    color: #ffffff;
}

.report-section-content {
    margin-bottom: 30px;
}

.report-section-content h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-left: 4px solid #4ecdc4;
    padding-left: 15px;
}

.report-section-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.report-table th {
    background: rgba(78, 205, 196, 0.3);
    color: #ffffff;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid rgba(78, 205, 196, 0.5);
}

.report-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.report-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.report-table tr:last-child td {
    border-bottom: none;
}

/* Графиктік отчет */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}

.chart-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-wrapper h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1em;
}

.chart-wrapper canvas {
    max-height: 300px;
}

/* Статистикалық отчет */
.statistics-report {
    color: #e0e0e0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #4ecdc4;
}

.stat-card h3 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-item {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-range {
    color: #b0b0b0;
    font-size: 0.85em;
}

.stats-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ffa502;
}

.stats-summary h3 {
    color: #ffa502;
    margin-bottom: 20px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.summary-label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.summary-value {
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
}

/* Адаптивті дизайн */
@media (max-width: 1200px) {
    .reports-container {
        flex-direction: column;
    }

    .reports-sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }

    .reports-menu {
        display: flex;
        gap: 10px;
        overflow-x: auto;
    }

    .report-item {
        white-space: nowrap;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .charts-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .report-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Басып шығару стильдері */
@media print {
    body {
        background: white;
        color: black;
    }

    .reports-sidebar,
    .report-actions,
    .top-panel {
        display: none;
    }

    .reports-content {
        background: white;
        border: none;
    }

    .report-section {
        display: block !important;
    }
}



