* {
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: #f0f7ff;
    margin: 0;
    padding: 20px;
}

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Вкладки (tabs) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    background: #2c3e66;
    gap: 4px;
    padding: 8px 12px 0 12px;
}

.tab-btn {
    background: #eef2fa;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 24px 24px 12px 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #1e2f47;
}

.tab-btn.active {
    background: white;
    color: #1e4a76;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover:not(.active) {
    background: #d9e2f0;
}

/* контент вкладок */
.tab-content {
    display: none;
    padding: 24px 28px;
    background: white;
    animation: fade 0.2s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* таблицы и формы */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #e9eff7;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background: #f8fafc;
}

button,
.file-label {
    background: #2c5f8a;
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    margin: 4px 6px 4px 0;
    display: inline-block;
}

button:hover {
    background: #1d4465;
    transform: scale(0.97);
}

.btn-danger {
    background: #b91c1c;
}

.btn-danger:hover {
    background: #991b1b;
}

.btn-secondary {
    background: #5b6e8c;
}

.btn-success {
    background: #2b6e3c;
}

input,
select {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #b9c8e8;
    margin: 6px 8px 6px 0;
    font-size: 0.9rem;
    width: auto;
    min-width: 140px;
}

.form-row {
    background: #f3f6fc;
    padding: 16px;
    border-radius: 28px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stat-card {
    background: #f9fbfe;
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 16px 0 8px 0;
    color: #1e3a5f;
    border-left: 5px solid #2c5f8a;
    padding-left: 14px;
}

.flex-chart {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

canvas {
    max-width: 100%;
    background: #fff;
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.help-block {
    background: #eef3ff;
    padding: 18px;
    border-radius: 28px;
    margin-bottom: 20px;
}

.photo-dev {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f1f5f9;
    border-radius: 40px;
    padding: 16px 24px;
}

.photo-placeholder {
    width: 80px;
    height: 80px;
    background: #2c5f8a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

@media (max-width: 720px) {
    .tab-content {
        padding: 16px;
    }

    .tabs {
        gap: 2px;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    input,
    select {
        width: 100%;
        margin: 5px 0;
    }
}

.badge {
    background: #d4e2fc;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.75rem;
}