* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

.app {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 270px;
    background: linear-gradient(180deg, #0f172a, #1e3a8a);
    color: white;
    padding: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: white;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 1px;
}

.brand h1 {
    font-size: 19px;
}

.brand span {
    font-size: 12px;
    color: #cbd5e1;
}

.menu a {
    display: block;
    padding: 13px 14px;
    border-radius: 12px;
    color: #e2e8f0;
    text-decoration: none;
    margin-bottom: 8px;
    font-weight: 600;
}

.menu a:hover,
.menu a.active {
    background: rgba(255,255,255,.16);
    color: white;
}

.menu .logout {
    margin-top: 28px;
    background: rgba(220,38,38,.25);
}

.main {
    flex: 1;
    padding: 24px;
}

.topbar {
    background: white;
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.topbar h2 {
    font-size: 24px;
    color: #0f172a;
}

.topbar p {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
}

.user-box {
    text-align: right;
}

.user-box strong {
    display: block;
}

.user-box span {
    font-size: 13px;
    color: #64748b;
    text-transform: capitalize;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
    margin-bottom: 22px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 14px;
}

.card-head p {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #1e3a8a;
    color: white;
}

.btn-light {
    background: #e2e8f0;
    color: #1e293b;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
}

.form-control:focus {
    outline: none;
    border-color: #1e3a8a;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 13px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.table th {
    background: #f8fafc;
    color: #334155;
}

.alert {
    padding: 13px 15px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 999;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: white;
    width: 100%;
    max-width: 540px;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-close {
    border: none;
    background: #f1f5f9;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.footer {
    color: #64748b;
    font-size: 13px;
    text-align: center;
    padding: 18px;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    width: 390px;
    background: white;
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.login-title {
    text-align: center;
    margin-bottom: 24px;
}

.login-title h1 {
    color: #1e3a8a;
}

.login-title p {
    color: #64748b;
    font-size: 14px;
    margin-top: 6px;
}

.btn-full {
    width: 100%;
}

@media (max-width: 768px) {
    .app {
        display: block;
    }

    .sidebar {
        width: 100%;
    }

    .main {
        padding: 16px;
    }

    .topbar,
    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-box {
        text-align: left;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .modal-footer {
        flex-direction: column;
    }
}

.aksi-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 8px 11px;
    border-radius: 9px;
    font-size: 13px;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.modal-box-small {
    max-width: 420px;
}

@media (max-width: 768px) {
    .aksi-group {
        flex-direction: column;
    }

    .aksi-group .btn {
        width: 100%;
    }
}

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.dashboard-card{
    background:#fff;
    border-radius:16px;
    padding:22px;
    display:flex;
    align-items:center;
    gap:18px;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.dashboard-icon{
    width:70px;
    height:70px;
    border-radius:18px;
    background:#2563eb;
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px;
}

.dashboard-info span{
    color:#64748b;
    display:block;
    margin-bottom:5px;
}

.dashboard-info h2{
    font-size:34px;
    color:#0f172a;
}

.quick-menu{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:18px;
    margin-top:20px;
}

.quick-item{
    background:#f8fafc;
    border:1px solid #e2e8f0;
    border-radius:16px;
    padding:20px;
    text-align:center;
    text-decoration:none;
    color:#0f172a;
    transition:.25s;
}

.quick-item:hover{
    background:#2563eb;
    color:#fff;
    transform:translateY(-3px);
}

.quick-icon{
    font-size:38px;
    margin-bottom:12px;
}

.asesmen-table th,
.asesmen-table td {
    vertical-align: middle;
}

.asesmen-table th:nth-child(1),
.asesmen-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.asesmen-table th:nth-child(3),
.asesmen-table th:nth-child(4),
.asesmen-table th:nth-child(5),
.asesmen-table th:nth-child(6),
.asesmen-table th:nth-child(7),
.asesmen-table td:nth-child(3),
.asesmen-table td:nth-child(4),
.asesmen-table td:nth-child(5),
.asesmen-table td:nth-child(6),
.asesmen-table td:nth-child(7) {
    width: 70px;
    text-align: center;
}

.text-center {
    text-align: center;
}

.radio-x input {
    display: none;
}

.radio-x span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-weight: bold;
    cursor: pointer;
}

.radio-x input:checked + span {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.keterangan-box {
    margin-top: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    line-height: 1.8;
}

.student-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.student-header h3 {
    font-size: 24px;
    color: #0f172a;
}

.student-header p {
    margin-top: 6px;
    color: #64748b;
}

.student-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.student-tabs a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    padding: 11px 15px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(15,23,42,.04);
}

.student-tabs a.active,
.student-tabs a:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.student-tabs a.disabled,
.quick-item.disabled {
    opacity: .5;
    pointer-events: none;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.profile-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
}

.profile-grid span {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 6px;
}

.profile-grid strong {
    color: #0f172a;
}

@media (max-width: 768px) {
    .student-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-tabs a {
        width: 100%;
        text-align: center;
    }
}

.screening-table th:nth-child(1),
.screening-table td:nth-child(1) {
    width: 55px;
    text-align: center;
}

.screening-table th:nth-child(4),
.screening-table th:nth-child(5),
.screening-table td:nth-child(4),
.screening-table td:nth-child(5) {
    width: 70px;
    text-align: center;
}

.screening-table textarea {
    min-width: 220px;
}

.dynamic-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.check-line {
    display: block;
    margin: 9px 0;
    color: #334155;
}

.check-line input {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .dynamic-row {
        grid-template-columns: 1fr;
    }
}