* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.header {
    background: #0f172a;
    color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    margin: 0;
    font-size: 24px;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    opacity: 0.7;
}

.nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.nav__user {
    color: #94a3b8;
}

.section {
    margin-bottom: 32px;
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat__label {
    font-size: 14px;
    color: #64748b;
}

.stat__value {
    font-size: 32px;
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.button.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.button.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.button-group {
    display: flex;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th,
td {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
}

tr.warning {
    background: #fef3c7;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

input,
select,
textarea {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    font-size: 14px;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.messages {
    margin-bottom: 16px;
}

.message {
    padding: 10px 14px;
    border-radius: 8px;
    background: #dbeafe;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.auth-body {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #fff;
}

.auth-card {
    background: #fff;
    color: #1f2937;
    padding: 32px;
    border-radius: 14px;
    width: min(380px, 90%);
}

.error {
    color: #dc2626;
    font-size: 12px;
}
