/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f7fb;
    color: #2d3a4b;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main.container { flex: 1 0 auto; padding-top: 28px; padding-bottom: 40px; }
a { color: #1e6091; text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: #6b7a8f; font-size: 0.9rem; }

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, #1e6091 0%, #2a9d8f 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
    width: 54px; height: 54px;
    background: #fff;
    color: #1e6091;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    overflow: hidden;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.brand h1 { font-size: 1.25rem; }
.brand p { font-size: 0.85rem; opacity: 0.9; }
.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: #fff; font-weight: 500; }
.site-nav a.btn-nav {
    background: #ffb703;
    color: #1a2a3a;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}
.site-nav a.btn-nav:hover { background: #fff; text-decoration: none; }

/* ===== Hero (landing) ===== */
.hero {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.hero h2 { font-size: 2rem; margin-bottom: 12px; color: #1e6091; }
.hero p { font-size: 1.05rem; margin-bottom: 20px; max-width: 720px; }
.btn {
    display: inline-block;
    background: #1e6091;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s;
}
.btn:hover { background: #14476b; text-decoration: none; }
.btn-success { background: #2a9d8f; }
.btn-success:hover { background: #1f7a70; }
.btn-secondary { background: #6b7a8f; }
.btn-danger { background: #d62828; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.info-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.info-card h3 { color: #1e6091; margin-bottom: 8px; font-size: 1.1rem; }

/* ===== Form ===== */
.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.form-card h2 { color: #1e6091; margin-bottom: 6px; }
.form-card > p.subtitle { color: #6b7a8f; margin-bottom: 24px; }
fieldset {
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 22px;
}
legend {
    padding: 0 10px;
    color: #1e6091;
    font-weight: 600;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.92rem;
}
.form-group label .req { color: #d62828; }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    font: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e6091;
    box-shadow: 0 0 0 3px rgba(30,96,145,.15);
}
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}
.alert-success { background: #e8f8f5; border-color: #2a9d8f; color: #1f5e57; }
.alert-error   { background: #fdecec; border-color: #d62828; color: #8a1a1a; }
.alert ul { margin: 6px 0 0 20px; }

/* ===== Table ===== */
.table-wrap {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    overflow: hidden;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
table th, table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
}
table th {
    background: #1e6091;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
table tr:hover td { background: #f8fbff; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-baru     { background: #fff3cd; color: #8a6d1a; }
.badge-diterima { background: #d1f0e9; color: #1f5e57; }
.badge-ditolak  { background: #fad9d9; color: #8a1a1a; }

/* ===== Success page ===== */
.success-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.success-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    background: #2a9d8f;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
}
.no-pendaftaran {
    display: inline-block;
    padding: 10px 24px;
    background: #f4f7fb;
    border: 2px dashed #1e6091;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e6091;
    letter-spacing: 1px;
    margin: 14px 0 20px;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a2a3a;
    color: #cfd8e3;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}
.site-footer .muted { color: #8aa0b8; }

/* ===== Login ===== */
.login-wrap {
    max-width: 400px;
    margin: 40px auto;
}

/* ===== Mini tables (inside form / detail) ===== */
.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 4px;
    font-size: 0.9rem;
    background: #fff;
}
.mini-table th,
.mini-table td {
    padding: 6px 8px;
    border: 1px solid #d6dee8;
    text-align: left;
    vertical-align: middle;
}
.mini-table th {
    background: #eef3f9;
    color: #1e6091;
    font-weight: 600;
    text-transform: none;
    font-size: 0.85rem;
    letter-spacing: 0;
}
.mini-table input[type="text"],
.mini-table input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    font: inherit;
    background: #fff;
}
.mini-table tr:hover td { background: transparent; }
.cell-radio {
    text-align: center;
    width: 50px;
}
.checklist-table td { vertical-align: middle; }

/* ===== Checkbox grid ===== */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 14px;
    padding: 4px 0;
}
.check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.92rem;
}
.check-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .hero { padding: 24px; }
    .hero h2 { font-size: 1.5rem; }
    .form-card { padding: 20px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .mini-table { font-size: 0.8rem; }
    .mini-table th, .mini-table td { padding: 4px 6px; }
}
