* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}

.narrow-container {
    max-width: 520px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 12px;
}

h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.desc {
    color: #6b7280;
    margin-bottom: 24px;
}

.form-card,
.detail-card,
.success-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.alert-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 8px;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin: 0;
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 8px;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

button {
    margin-top: 24px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    opacity: 0.92;
}

.table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

th {
    background: #f9fafb;
}

a {
    color: #2563eb;
    text-decoration: none;
}

.btn-link {
    display: inline-block;
    margin-right: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
}

.btn-link.secondary {
    background: #4b5563;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e5e7eb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}