* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #eaf4ff;
    color: #0f172a;
}

.topbar {
    background: #bfe0ff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-title {
    font-weight: 800;
    font-size: 18px;
    color: #0f3a6b;
}

.brand-subtitle {
    font-weight: 700;
    font-size: 12px;
    color: #1e3a8a;
    opacity: 0.85;
    margin-top: 2px;
}

.menu a {
    margin-left: 14px;
    text-decoration: none;
    color: #0f3a6b;
    font-weight: 800;
}

.menu a:hover {
    text-decoration: underline;
}

.danger-link {
    color: #b91c1c !important;
}

.subbar {
    background: #dbeafe;
    padding: 10px 18px;
}

.chip {
    display: inline-block;
    background: #ffffff;
    color: #0f3a6b;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    margin-right: 8px;
}

.chip.soft {
    background: #eff6ff;
}

.container {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 14px;
}

.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    margin-bottom: 18px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: #2563eb;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 900;
}

.btn:hover {
    filter: brightness(1.03);
}

.btn.success {
    background: #16a34a;
}

.btn.ghost {
    background: #eff6ff;
    color: #1e3a8a;
}

.btn.small {
    padding: 8px 12px;
    border-radius: 10px;
}

.btn-sm {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    background: #0ea5e9;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.btn-sm.danger {
    background: #dc2626;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.table th,
.table td {
    border: 1px solid #cbd5e1;
    padding: 10px;
    text-align: left;
}

.table th {
    background: #eff6ff;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form {
    margin-top: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.field label {
    display: block;
    font-weight: 900;
    margin-bottom: 6px;
    color: #0f3a6b;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #2563eb;
}

.field.full {
    grid-column: span 2;
}

.alert {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    margin-top: 12px;
}

.center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.login-card {
    width: 100%;
    max-width: 520px;
}

.help {
    margin-top: 12px;
    color: #334155;
    font-weight: 800;
    background: #eff6ff;
    border-radius: 10px;
    padding: 10px 12px;
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.hero-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.hero-card h1 {
    margin-top: 0;
    color: #0f3a6b;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-image {
    display: grid;
    gap: 12px;
}

.image-frame {
    border-radius: 14px;
    overflow: hidden;
    background: #dbeafe;
    height: 260px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.note {
    background: #eff6ff;
    border-radius: 14px;
    padding: 14px;
}

.note-title {
    font-weight: 900;
    color: #0f3a6b;
}

.note-text {
    font-weight: 700;
    color: #334155;
    margin-top: 4px;
}

.mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.mini-box {
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 12px;
}

.mini-title {
    font-weight: 900;
    color: #0f3a6b;
    font-size: 12px;
}

.mini-text {
    font-weight: 800;
    color: #1e3a8a;
    margin-top: 6px;
}


@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: span 1;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .mini {
        grid-template-columns: 1fr;
    }
}
