﻿/* Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    color: white;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: white;
}

.dashboard-subtitle {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* KPI Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
    text-decoration: none !important;
}

    .summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
        color: inherit;
    }

.summary-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-success-gradient {
    background: linear-gradient(135deg, #48c6ef 0%, #6f86d6 100%);
}

.bg-warning-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.bg-danger-gradient {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
}

.summary-label {
    margin: 0;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.chart-card {
    grid-column: 1 / -1; /* График занимает всю ширину */
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #edf2f7;
    padding: 1.25rem 1.5rem;
}

    .card-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #2d3748;
    }

/* Tables in cards */
.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #718096;
    font-weight: 600;
    border-bottom: 2px solid #edf2f7;
    padding: 1rem 1.5rem;
}

.table td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    color: #4a5568;
    border-bottom: 1px solid #edf2f7;
}

.table tr:last-child td {
    border-bottom: none;
}
