*{ margin:0; padding:0; box-sizing:border-box; font-family:Inter,system-ui; }
body{ background:#f5f7fb; color:#222; }

/* Шапка */
header{ height:70px; background:white; display:flex; align-items:center; justify-content:center; position:relative; box-shadow:0 3px 20px rgba(0,0,0,0.05); }
.logo-title{ position:absolute; left:40px; font-size:22px; font-weight:800; color: #222; }
nav{ display:flex; gap:25px; }
nav button{ border:none; background:none; font-size:15px; cursor:pointer; padding:8px 16px; border-radius:8px; transition: 0.3s; }
nav button.active{ background:#4b6cff; color:white; }

/* Контейнеры */
.container{ max-width:1100px; margin:auto; padding:40px; }
.section{ display:none; }
.section.active{ display:block; }
h2{ margin-bottom:20px; }

/* Формы */
.form{ background:white; padding:25px; border-radius:14px; box-shadow:0 10px 25px rgba(0,0,0,0.05); }
.form input, .form select{ width:100%; padding:13px; margin-bottom:18px; border:1px solid #ddd; border-radius:8px; font-size:14px; }

/* Кнопки */
.main-btn{ width:100%; padding:14px; border:none; background:#4b6cff; color:white; border-radius:8px; cursor:pointer; font-size:15px; font-weight: 600; transition: 0.2s; }
.main-btn:hover{ opacity: 0.9; }
.cancel-btn{ width:100%; margin-top:10px; padding:10px; border:none; background:#eee; color:#666; border-radius:8px; cursor:pointer; display:none; }

/* Таблицы */
table{ width:100%; border-collapse:collapse; background:white; border-radius:12px; overflow:hidden; box-shadow:0 10px 25px rgba(0,0,0,0.04); }
th,td{ padding:14px; border-bottom:1px solid #eee; }
th{ background:#fafafa; text-align:left; color: #777; font-size: 13px; }
.edit-btn{ background:#f39c12; color:white; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; margin-right: 5px; }
.delete-btn{ background:#ff4b4b; color:white; border:none; padding:6px 12px; border-radius:6px; cursor:pointer; }

/* Статистика */
.stats{ display:grid; grid-template-columns: 1fr 1fr; gap:25px; }
.chart-wrap{ grid-column: 1 / 3; background:white; padding:30px; border-radius:14px; box-shadow:0 10px 25px rgba(0,0,0,0.05); max-height: 450px; display: flex; justify-content: center; }
.card{ background:white; padding:30px; border-radius:14px; text-align:center; box-shadow:0 10px 25px rgba(0,0,0,0.05); }
.card-title{ color:#777; font-size:14px; }
.card-value{ font-size:28px; font-weight:700; margin-top:8px; }

/* Утилиты */
.tools{ margin-top:20px; display:flex; gap:10px; }
.tools button{ padding:10px 15px; border:none; border-radius:6px; background:#eee; cursor:pointer; }
.notify{ position:fixed; bottom:20px; left:50%; transform:translate(-50%,20px); background:#222; color:white; padding:14px 22px; border-radius:10px; opacity:0; transition:0.4s; pointer-events: none; z-index: 1000; }
.notify.show{ opacity:1; transform:translate(-50%,0); }

/* Адаптивность для мобилок */
@media (max-width: 600px) {
    .stats { grid-template-columns: 1fr; }
    .logo-title { position: static; margin-bottom: 10px; }
    header { height: auto; padding: 20px; flex-direction: column; }
}
