* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

body {
font-family: Arial, sans-serif;
color: #f8fafc;
background: #0f172a;
}

.login-page {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background:
radial-gradient(
circle at top,
#1e3a5f,
#0f172a 65%
);
}

.login-container {
width: 100%;
max-width: 420px;
}

.login-card {
background: #1e293b;
border: 1px solid #334155;
border-radius: 20px;
padding: 35px 28px;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.login-logo {
width: 65px;
height: 65px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 18px;
background: #7c3aed;
font-size: 20px;
font-weight: bold;
}

.login-card h1 {
text-align: center;
font-size: 28px;
margin-bottom: 10px;
}

.login-description {
text-align: center;
color: #94a3b8;
font-size: 14px;
line-height: 1.6;
margin-bottom: 28px;
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
margin-bottom: 8px;
font-size: 14px;
}

.form-group input {
width: 100%;
padding: 13px 14px;
border: 1px solid #475569;
border-radius: 10px;
background: #0f172a;
color: white;
font-size: 15px;
outline: none;
}

.form-group input:focus {
border-color: #a78bfa;
box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.login-button {
width: 100%;
padding: 14px;
border: none;
border-radius: 10px;
background: #7c3aed;
color: white;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background 0.2s;
}

.login-button:hover {
background: #6d28d9;
}

.error-message {
margin-bottom: 20px;
padding: 12px;
border-radius: 8px;
background: #7f1d1d;
color: #fecaca;
font-size: 14px;
}

.login-footer {
margin-top: 25px;
text-align: center;
color: #64748b;
font-size: 12px;
}

@media (max-width: 480px) {
.login-card {
padding: 28px 20px;
}

.login-card h1 {
    font-size: 24px;
}

}

/* DASHBOARD STYLE */

.dashboard-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-container h1 {
  margin-bottom: 20px;
}

.dashboard-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.dashboard-card {
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #334155;
  background: #1e293b;
}

.dashboard-card p {
  color: #94a3b8;
  line-height: 1.6;;
}

@media (max-width: 600px) {
  .dashboard-menu {
    grid-template-columns: 1fr;
  }
}

/* STYLE DASHBOARD STUDENT */

/* ==================================
   RPG STUDENT DASHBOARD
================================== */

.rpg-dashboard {
    min-height: 100vh;
    background: #0b1020;
    color: #f8fafc;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 5%;
    border-bottom: 1px solid #263149;
    background: #11182b;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #7c3aed;
    color: white;
}

.user-info {
    color: #cbd5e1;
    font-size: 14px;
}

.rpg-container {
    max-width: 1200px;
    margin: auto;
    padding: 35px 24px;
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border: 1px solid #293650;
    border-radius: 22px;
    background: linear-gradient(
        120deg,
        #1e293b,
        #172554
    );
}

.eyebrow {
    color: #a78bfa;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.welcome-section h1 {
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.3;
    margin-bottom: 12px;
}

.welcome-description {
    color: #cbd5e1;
    line-height: 1.7;
}

.player-avatar {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #7c3aed;
    color: white;
    font-size: 36px;
    font-weight: bold;
    border: 3px solid #a78bfa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 25px 0 40px;
}

.stat-card {
    padding: 23px;
    border: 1px solid #293650;
    border-radius: 17px;
    background: #151e32;
}

.stat-label,
.stat-description {
    display: block;
    color: #94a3b8;
    font-size: 13px;
}

.stat-value {
    display: block;
    font-size: 32px;
    margin: 12px 0;
}

.section-block {
    margin-bottom: 40px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-size: 25px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.course-card {
    min-width: 0;
    padding: 25px;
    border: 1px solid #293650;
    border-radius: 20px;
    background: #151e32;
}

.english-course {
    border-top: 4px solid #38bdf8;
}

.piano-course {
    border-top: 4px solid #c084fc;
}

.course-top,
.level-row,
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.course-top {
    margin-bottom: 22px;
}

.course-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #263149;
    font-weight: bold;
}

.course-status {
    padding: 6px 10px;
    border-radius: 20px;
    background: #14532d;
    color: #bbf7d0;
    font-size: 12px;
}

.course-card h3 {
    font-size: 22px;
    overflow-wrap: anywhere;
    margin-bottom: 10px;
}

.course-rank {
    color: #a78bfa;
    font-size: 13px;
    margin-bottom: 25px;
}

.level-row {
    margin-bottom: 12px;
    font-size: 14px;
}

.level-row span {
    color: #cbd5e1;
}

.progress-track {
    height: 10px;
    border-radius: 20px;
    background: #334155;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        90deg,
        #7c3aed,
        #38bdf8
    );
}

.progress-description {
    margin-top: 10px;
    color: #94a3b8;
    font-size: 12px;
}

.course-meta {
    flex-wrap: wrap;
    margin: 24px 0;
    color: #cbd5e1;
    font-size: 12px;
}

.course-button {
    display: block;
    padding: 13px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    background: #7c3aed;
    color: white;
    font-weight: bold;
    transition: background 0.2s;
}

.course-button:hover {
    background: #6d28d9;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px dashed #475569;
    border-radius: 16px;
    color: #cbd5e1;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    line-height: 1.7;
}

.quest-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border: 1px solid #293650;
    border-radius: 17px;
    background: #151e32;
}

.quest-card h3 {
    margin-bottom: 10px;
}

.quest-card p {
    color: #94a3b8;
    line-height: 1.7;
}

.quest-xp {
    color: #facc15;
    font-weight: bold;
    white-space: nowrap;
}

.notice {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.6;
}

.logout-button {
    padding: 12px 20px;
    border: 1px solid #475569;
    border-radius: 10px;
    background: #1e293b;
    color: white;
    cursor: pointer;
}

.logout-button:hover {
    background: #334155;
}

@media (max-width: 700px) {

    .topbar {
        padding: 16px 20px;
    }

    .rpg-container {
        padding: 24px 16px;
    }

    .welcome-section {
        padding: 23px;
    }

    .player-avatar {
        width: 60px;
        height: 60px;
        border-radius: 17px;
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 18px;
    }
}

@media (max-width: 400px) {

    .welcome-section {
        align-items: flex-start;
        padding: 18px;
    }

    .player-avatar {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 20px;
    }

    .welcome-description {
        font-size: 13px;
    }

    .course-card {
        padding: 19px;
    }
}

/* ADMIN USER MANAGEMENT */

.admin-container {
    max-width: 1200px;
    margin: auto;
    padding: 30px 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.admin-header h1 {
    margin-bottom: 12px;
}

.admin-header p {
    color: #94a3b8;
}

.admin-panel {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #293650;
    border-radius: 18px;
    background: #151e32;
}

.admin-panel h2 {
    margin-bottom: 25px;
    font-size: 21px;
}

.admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-form .form-group {
    margin-bottom: 0;
}

.admin-form input,
.admin-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid #475569;
    border-radius: 9px;
    background: #0f172a;
    color: white;
    font-size: 14px;
}

.admin-form select {
    cursor: pointer;
}

.admin-form small {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
}

.admin-form .login-button {
    align-self: end;
}

.back-button {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 9px;
    background: #334155;
    color: white;
    text-decoration: none;
}

.back-button:hover {
    background: #475569;
}

.notice-box {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 10px;
}

.notice-box.success {
    background: #14532d;
    color: #bbf7d0;
}

.notice-box.error {
    background: #7f1d1d;
    color: #fecaca;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.users-table th,
.users-table td {
    padding: 14px;
    border-bottom: 1px solid #334155;
    white-space: nowrap;
}

.users-table th {
    color: #a78bfa;
    font-size: 13px;
}

.users-table td {
    color: #e2e8f0;
    font-size: 14px;
}

@media (max-width: 650px) {

    .admin-container {
        padding: 20px 14px;
    }

    .admin-panel {
        padding: 18px;
    }

    .admin-form {
        grid-template-columns: 1fr;
    }

    .admin-header h1 {
        font-size: 25px;
    }
}

.admin-menu-card {
    display: block;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #334155;
    background: #1e293b;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.admin-menu-card:hover {
    transform: translateY(-3px);
    background: #273449;
}

.admin-menu-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.admin-menu-card p {
    color: #94a3b8;
    line-height: 1.6;
}

/* LEARNING PATH */

.learning-header {
    margin: 35px 0;
}

.learning-header h1 {
    font-size: clamp(28px, 5vw, 38px);
    margin-bottom: 12px;
}

.learning-header p {
    color: #94a3b8;
    line-height: 1.7;
}

.learning-module {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #293650;
    border-radius: 20px;
    background: #151e32;
}

.module-heading {
    margin-bottom: 25px;
}

.module-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #312e81;
    color: #c4b5fd;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.module-heading h2 {
    margin-bottom: 10px;
}

.module-heading p {
    color: #94a3b8;
    line-height: 1.7;
}

.lesson-list {
    display: grid;
    gap: 14px;
}

.lesson-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid #334155;
    border-radius: 14px;
    background: #0f172a;
}

.lesson-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #312e81;
    color: white;
    font-weight: bold;
}

.lesson-details {
    min-width: 0;
}

.lesson-details h3 {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.lesson-details p {
    color: #94a3b8;
    font-size: 12px;
}

.lesson-status {
    grid-column: 2;
    color: #a78bfa;
    font-size: 12px;
}

.lesson-item .course-button {
    grid-column: 1 / -1;
}

@media (min-width: 650px) {

    .lesson-item {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
    }

    .lesson-status {
        grid-column: auto;
    }

    .lesson-item .course-button {
        grid-column: auto;
    }

}

/* LESSON DETAIL */

.lesson-container {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    padding: 30px 20px;
}

.lesson-navigation {
    margin-bottom: 30px;
}

.lesson-header {
    margin-bottom: 30px;
    padding: 30px;
    border: 1px solid #293650;
    border-radius: 20px;
    background: linear-gradient(
        120deg,
        #1e293b,
        #172554
    );
}

.lesson-header h1 {
    margin-bottom: 15px;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.3;
}

.lesson-module-title {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.lesson-reward {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #c4b5fd;
    font-size: 13px;
}

.lesson-content {
    padding: 30px;
    border: 1px solid #293650;
    border-radius: 20px;
    background: #151e32;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.lesson-text h2,
.lesson-text h3 {
    margin: 20px 0 12px;
}

.lesson-text p {
    margin-bottom: 15px;
}

.lesson-media {
    margin-top: 30px;
}

.lesson-media h2 {
    margin-bottom: 15px;
    font-size: 20px;
}

.lesson-media img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    border: 0;
}

.lesson-media video {
    display: block;
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    background: black;
}

.lesson-media audio {
    display: block;
    width: 100%;
}

.lesson-completion {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid #293650;
    border-radius: 18px;
    background: #151e32;
}

.lesson-completion h2 {
    margin-bottom: 12px;
}

.lesson-completion p {
    margin-bottom: 20px;
    color: #94a3b8;
    line-height: 1.7;
}

.lesson-completion .course-button {
    width: 100%;
    border: 0;
    cursor: pointer;
    font-size: 15px;
}

.media-warning {
    margin-top: 20px;
    color: #fca5a5;
}

@media (max-width: 600px) {

    .lesson-container {
        padding: 20px 14px;
    }

    .lesson-header,
    .lesson-content,
    .lesson-completion {
        padding: 20px;
    }

    .lesson-reward {
        flex-direction: column;
    }

}

/* ADMIN LEARNING PATH */

.admin-select {
    width: 100%;
    max-width: 500px;
    padding: 13px;
    margin-top: 10px;
    border: 1px solid #475569;
    border-radius: 9px;
    background: #0f172a;
    color: white;
}

.course-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    color: #94a3b8;
}

.course-summary strong {
    color: #c4b5fd;
}

.admin-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #475569;
    border-radius: 9px;
    background: #0f172a;
    color: white;
    font: inherit;
    resize: vertical;
}

.module-admin-list {
    display: grid;
    gap: 18px;
}

.module-admin-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #334155;
    border-radius: 16px;
    background: #0f172a;
}

.module-admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.module-admin-card h3 {
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.module-admin-card p {
    color: #94a3b8;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.module-status {
    padding: 6px 10px;
    border-radius: 20px;
    background: #334155;
    color: #e2e8f0;
    font-size: 12px;
}

.module-admin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 600px) {

    .module-admin-card {
        padding: 17px;
    }

    .module-admin-top {
        align-items: flex-start;
    }

}

/* LESSON PUBLISHING */

.lesson-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.lesson-admin-actions form {
    margin: 0;
}

.publish-button,
.archive-button {
    padding: 11px 15px;
    border: 0;
    border-radius: 9px;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.publish-button {
    background: #15803d;
}

.publish-button:hover {
    background: #166534;
}

.archive-button {
    background: #475569;
}

.archive-button:hover {
    background: #334155;
}

/* STYLE ASSIGNMENTS STUDENT */

.student-task-menu {
display: flex;
align-items: flex-start;
gap: 20px;
margin: 25px 0;
padding: 25px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 18px;
background: linear-gradient(
135deg,
rgba(35, 92, 170, 0.55),
rgba(75, 55, 150, 0.45)
);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.student-task-icon {
display: flex;
align-items: center;
justify-content: center;
min-width: 55px;
height: 55px;
border-radius: 14px;
background: rgba(255, 255, 255, 0.15);
font-size: 28px;
}

.student-task-content {
flex: 1;
}

.student-task-label {
color: #8ed8ff;
font-size: 12px;
font-weight: bold;
letter-spacing: 1.5px;
}

.student-task-content h2 {
margin: 8px 0;
}

.student-task-content p {
line-height: 1.7;
opacity: 0.9;
}

.student-task-button {
display: inline-block;
margin-top: 8px;
padding: 12px 20px;
border-radius: 10px;
background: #5b8cff;
color: white;
font-weight: bold;
text-decoration: none;
}

.student-task-button:hover {
background: #4776e8;
}

@media (max-width: 600px) {
.student-task-menu {
gap: 12px;
padding: 18px;
}

.student-task-icon {
    min-width: 42px;
    height: 42px;
    font-size: 22px;
}

}

/* ========================================
   CHAPTER PUBLISHING
======================================== */

.chapter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chapter-actions form {
    margin: 0;
}

.chapter-publish-button,
.chapter-archive-button {
    padding: 11px 18px;
    border: none;
    border-radius: 9px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.chapter-publish-button {
    background: linear-gradient(135deg, #00b894, #009f78);
}

.chapter-archive-button {
    background: linear-gradient(135deg, #e17055, #c0392b);
}

.chapter-publish-button:hover,
.chapter-archive-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.chapter-archived-label {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
}

/* Q&A Card pada Dashboard Siswa */
.qna-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 30px;
    margin: 25px 0;
    border: 1px solid rgba(80, 180, 255, 0.35);
    border-radius: 22px;
    background: linear-gradient(
        135deg,
        rgba(18, 65, 120, 0.95),
        rgba(25, 110, 190, 0.85)
    );
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.qna-feature-card .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 34px;
}

.qna-feature-card .feature-content {
    flex: 1;
}

.qna-feature-card .feature-label {
    color: #a8dcff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.qna-feature-card h2 {
    margin: 10px 0;
    color: #ffffff;
    font-size: 28px;
}

.qna-feature-card p {
    margin-bottom: 22px;
    color: #e3f2ff;
    line-height: 1.7;
}

.qna-feature-card .qna-button {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 12px;
    background: #55d6c2;
    color: #102b45;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.qna-feature-card .qna-button:hover {
    background: #82f0df;
    transform: translateY(-2px);
}

/* Tampilan untuk HP */
@media (max-width: 600px) {
    .qna-feature-card {
        gap: 15px;
        padding: 20px;
    }

    .qna-feature-card .feature-icon {
        min-width: 48px;
        height: 48px;
        font-size: 25px;
    }

    .qna-feature-card h2 {
        font-size: 22px;
    }
}

/* ACHIEVEMENT DASHBOARD */

.achievement-dashboard-card {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 25px 0;
    padding: 28px;
    border: 1px solid rgba(90, 190, 255, 0.35);
    border-radius: 22px;
    background: linear-gradient(135deg, #142b50, #145da0);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.achievement-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 42px;
}

.achievement-card-content {
    flex: 1;
}

.achievement-label {
    display: block;
    margin-bottom: 10px;
    color: #80e8ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.achievement-card-content h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 26px;
}

.achievement-card-content p {
    margin-bottom: 20px;
    color: #dceaff;
    line-height: 1.7;
}

.achievement-button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    background: #48dfcf;
    color: #102c48;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
}

.achievement-button:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .achievement-dashboard-card {
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }

    .achievement-card-icon {
        width: 55px;
        height: 55px;
        border-radius: 14px;
        font-size: 30px;
    }

    .achievement-card-content h2 {
        font-size: 21px;
    }

    .achievement-card-content p {
        font-size: 14px;
    }

    .achievement-button {
        padding: 11px 15px;
        font-size: 14px;
    }
}

/* LEADERBOARD DASHBOARD */

.leaderboard-dashboard {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 28px 0;
    padding: 28px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, #123e91, #087ed0, #075985);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.leaderboard-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.13);
    font-size: 38px;
}

.leaderboard-content {
    flex: 1;
    min-width: 0;
}

.leaderboard-label {
    margin-bottom: 8px;
    color: #a5f3fc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.leaderboard-content h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.leaderboard-content > p {
    margin-bottom: 22px;
    line-height: 1.6;
    color: #e0f2fe;
}

.leaderboard-my-rank {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.leaderboard-my-rank > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 130px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.14);
}

.leaderboard-my-rank span {
    color: #dbeafe;
    font-size: 13px;
}

.leaderboard-my-rank strong {
    font-size: 25px;
}

.leaderboard-top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
}

.leaderboard-position {
    width: 42px;
    flex-shrink: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}

.leaderboard-student {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.leaderboard-student strong {
    overflow-wrap: anywhere;
}

.leaderboard-you {
    padding: 4px 8px;
    border-radius: 20px;
    background: #a5f3fc;
    color: #164e63;
    font-size: 11px;
    font-weight: 800;
}

.leaderboard-xp {
    flex-shrink: 0;
    font-weight: 800;
    color: #bae6fd;
}

@media (max-width: 600px) {
    .leaderboard-dashboard {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .leaderboard-content h2 {
        font-size: 25px;
    }

    .leaderboard-row {
        gap: 9px;
        padding: 11px;
    }

    .leaderboard-position {
        width: 32px;
        font-size: 17px;
    }

    .leaderboard-xp {
        font-size: 13px;
    }
}

/* TOMBOL HAPUS DI HALAMAN ADMIN */
/* .delete-button {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.delete-button:hover {
    background: #7f1d1d;
    transform: scale(1.03);
} */