/* ========================= */
/* BASE                      */
/* ========================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #071529;
    color: white;
}

/* ========================= */
/* LAYOUT                    */
/* ========================= */
.container {
    display: flex;
    min-height: 100vh;
}

/* ========================= */
/* SIDEBAR                   */
/* ========================= */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: #08152b;
    padding: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h2 {
    margin: 0;
    font-size: 18px;
}

.logo p {
    margin: 5px 0 0;
    color: #9ea8b7;
    font-size: 13px;
}

.logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.menu {
    margin-top: 50px;
}

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #10264a;
    transition: 0.3s;
}

.menu a:hover { background: #1a3a6e; }

.menu i { width: 20px; }

/* ========================= */
/* CONTENT                   */
/* ========================= */
.content {
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
}

/* ========================= */
/* CARD                      */
/* ========================= */
.card {
    background: #0d1b33;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.card h2 { margin: 0 0 5px; }

/* ========================= */
/* STATS GRID (3 kolom atas) */
/* ========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #102447;
    border: 1px solid #24497c;
    border-radius: 16px;
    padding: 25px;
}

.stat-card h3 {
    font-size: 42px;
    color: white;
    margin: 0 0 10px;
}

.stat-card p {
    color: #a6bfdc;
    margin: 0;
}

/* ========================= */
/* EVAL HEADER               */
/* ========================= */
.eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.eval-header h2 { margin: 0; }

.eval-badge {
    color: #9aa6b2;
    font-size: 14px;
}

/* ========================= */
/* EVALUASI — 4 KOLOM SEJAJAR*/
/* ========================= */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric { width: 100%; }

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.metric-label {
    color: #dbe8ff;
    font-size: 15px;
    font-weight: 500;
}

.metric-value {
    color: #38ef7d;
    font-weight: 700;
    font-size: 18px;
}

.progress {
    width: 100%;
    height: 10px;
    background: #2b3f60;
    border-radius: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1ed760, #48f29b);
    border-radius: 30px;
    transition: width 1s ease;
}

/* ========================= */
/* HISTORY HEADER            */
/* ========================= */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header h2 { margin: 0; }

.history-header span {
    color: #9aa6b2;
    font-size: 14px;
}

/* ========================= */
/* SUBTITLE                  */
/* ========================= */
.subtitle {
    color: #8ea0b5;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* ========================= */
/* UPLOAD BOX                */
/* ========================= */
input[type="file"] { display: none; }

.upload-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 220px;
    border: 2px dashed #2c4065;
    border-radius: 20px;
    cursor: pointer;
    background: #13213c;
    transition: 0.3s;
}

.upload-box:hover {
    background: #182b4d;
    border-color: #4a8cff;
    transform: translateY(-2px);
}

.upload-box.dragover {
    border-color: #55ff9f;
    background: #183b2e;
}

.upload-icon {
    font-size: 60px;
    color: #f4c04a;
    margin-bottom: 15px;
}

.upload-box h3 {
    margin: 0;
    font-size: 18px;
}

.upload-box p {
    color: #9aa6b2;
    margin: 8px 0 4px;
}

.upload-box small { color: #7b8da5; }

/* ========================= */
/* SESSION DATE              */
/* ========================= */
.session-date { margin-top: 20px; }

.session-date label {
    display: block;
    margin-bottom: 10px;
    color: #9aa6b2;
}

.session-date input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #13213c;
    color: white;
    font-size: 15px;
}

/* ========================= */
/* FILE INFO & BUTTON        */
/* ========================= */
.file-info {
    color: #ffb36b;
    margin-top: 15px;
    font-size: 15px;
}

.btn-process {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 18px;
    border-radius: 15px;
    background: #3f82ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-process:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(63,130,255,.35);
}

/* ========================= */
/* HISTORY CARDS             */
/* ========================= */
.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #182746;
    border: 1px solid #263b63;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 16px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.history-card:hover {
    transform: translateY(-2px);
    border-color: #4a8cff;
}

.history-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #39d98a;
    flex-shrink: 0;
}

.history-date {
    font-size: 16px;
    font-weight: 700;
}

.history-status {
    margin-top: 5px;
    color: #9aa6b2;
    font-size: 14px;
}

.history-id {
    font-size: 30px;
    font-weight: bold;
    color: #4a8cff;
}

.history-btn {
    width: 100%;
    margin-top: 15px;
    padding: 18px;
    background: #4a8cff;
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.history-btn:hover {
    background: #3a7cef;
    transform: translateY(-2px);
}

/* ========================= */
/* RESULT TABLE              */
/* ========================= */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px,1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-card {
    background: #13213c;
    border-radius: 15px;
    overflow: hidden;
}

.result-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.result-info { padding: 15px; }

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.result-table th {
    background: #13213c;
    color: #9db5d8;
    padding: 15px;
    text-align: left;
}

.result-table td {
    padding: 15px;
    border-bottom: 1px solid #1d3154;
}

.result-table tr:hover { background: #12213c; }

.badge-success {
    background: #0e3d2f;
    color: #22d67c;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-detail {
    background: #2d74ff;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
}

.btn-detail:hover { background: #4d8cff; }

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 1200px) {
    .evaluation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr; }
    .sidebar { width: 220px; min-width: 220px; }
}

@media (max-width: 600px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; min-width: unset; }
    .evaluation-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ========================= */
/* BASE                      */
/* ========================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #071529;
    color: white;
}

/* ========================= */
/* LAYOUT                    */
/* ========================= */
.container {
    display: flex;
    min-height: 100vh;
}

/* ========================= */
/* SIDEBAR                   */
/* ========================= */
.sidebar {
    width: 280px;
    min-width: 280px;
    background: #08152b;
    padding: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo h2 { margin: 0; font-size: 18px; }
.logo p { margin: 5px 0 0; color: #9ea8b7; font-size: 13px; }
.logo-img { width: 55px; height: 55px; object-fit: contain; }

.menu { margin-top: 50px; }

.menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: #10264a;
    transition: 0.3s;
}
.menu a:hover { background: #1a3a6e; }
.menu i { width: 20px; }

/* ========================= */
/* CONTENT                   */
/* ========================= */
.content {
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
}

/* ========================= */
/* CARD                      */
/* ========================= */
.card {
    background: #0d1b33;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}
.card h2 { margin: 0 0 5px; }

/* ========================= */
/* STATS GRID                */
/* ========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: #102447;
    border: 1px solid #24497c;
    border-radius: 16px;
    padding: 25px;
}
.stat-card h3 { font-size: 42px; color: white; margin: 0 0 10px; }
.stat-card p { color: #a6bfdc; margin: 0; }

/* ========================= */
/* EVAL HEADER               */
/* ========================= */
.eval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}
.eval-header h2 { margin: 0; }
.eval-badge { color: #9aa6b2; font-size: 14px; }

/* ========================= */
/* EVALUASI 4 KOLOM SEJAJAR  */
/* ========================= */
.evaluation-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric { width: 100%; }

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.metric-label { color: #dbe8ff; font-size: 15px; font-weight: 500; }
.metric-value { color: #38ef7d; font-weight: 700; font-size: 18px; }

.progress {
    width: 100%;
    height: 10px;
    background: #2b3f60;
    border-radius: 30px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1ed760, #48f29b);
    border-radius: 30px;
    transition: width 1s ease;
}

/* ========================= */
/* SUBTITLE                  */
/* ========================= */
.subtitle { color: #8ea0b5; margin-bottom: 20px; margin-top: 5px; }

/* ========================= */
/* UPLOAD BOX                */
/* ========================= */
input[type="file"] { display: none; }

.upload-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 220px;
    border: 2px dashed #2c4065;
    border-radius: 20px;
    cursor: pointer;
    background: #13213c;
    transition: 0.3s;
}
.upload-box:hover {
    background: #182b4d;
    border-color: #4a8cff;
    transform: translateY(-2px);
}
.upload-box.dragover {
    border-color: #55ff9f;
    background: #183b2e;
}
.upload-icon { font-size: 60px; color: #f4c04a; margin-bottom: 15px; }
.upload-box h3 { margin: 0; font-size: 18px; }
.upload-box p { color: #9aa6b2; margin: 8px 0 4px; }
.upload-box small { color: #7b8da5; }

/* ========================= */
/* SESSION DATE              */
/* ========================= */
.session-date { margin-top: 20px; }
.session-date label { display: block; margin-bottom: 10px; color: #9aa6b2; }
.session-date input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #13213c;
    color: white;
    font-size: 15px;
}

/* ========================= */
/* FILE INFO & BUTTONS       */
/* ========================= */
.file-info { color: #ffb36b; margin-top: 15px; font-size: 15px; }

.btn-process {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 18px;
    border-radius: 15px;
    background: #3f82ff;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn-process:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(63,130,255,.35);
}

/* ========================= */
/* HISTORY                   */
/* ========================= */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.history-header h2 { margin: 0; }
.history-header span { color: #9aa6b2; font-size: 14px; }

.history-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #182746;
    border: 1px solid #263b63;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 16px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}
.history-card:hover {
    transform: translateY(-2px);
    border-color: #4a8cff;
}

.history-left { display: flex; align-items: center; gap: 15px; }
.history-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #39d98a;
    flex-shrink: 0;
}
.history-date { font-size: 16px; font-weight: 700; }
.history-status { margin-top: 5px; color: #9aa6b2; font-size: 14px; }
.history-id { font-size: 30px; font-weight: bold; color: #4a8cff; }

.history-btn {
    width: 100%;
    margin-top: 15px;
    padding: 18px;
    background: #4a8cff;
    border: none;
    border-radius: 18px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.history-btn:hover { background: #3a7cef; transform: translateY(-2px); }

/* ========================= */
/* RESULT TABLE (all_results)*/
/* ========================= */
.result-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.result-table th {
    background: #13213c;
    color: #9db5d8;
    padding: 15px;
    text-align: left;
}
.result-table td {
    padding: 15px;
    border-bottom: 1px solid #1d3154;
}
.result-table tr:hover { background: #12213c; }

.badge-success {
    background: #0e3d2f;
    color: #22d67c;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.btn-detail {
    background: #2d74ff;
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
}
.btn-detail:hover { background: #4d8cff; }

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 1100px) {
    .evaluation-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { width: 220px; min-width: 220px; }
}
@media (max-width: 600px) {
    .container { flex-direction: column; }
    .sidebar { width: 100%; min-width: unset; }
    .evaluation-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

.class-badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.class-badge{
    background:#13213c;
    border:1px solid #24497c;
    color:#ffffff;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}