/* public/css/style.css */
/* --- Variabel Warna & Font --- */


  /* --- General & Base Styles --- */
  * {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

  /* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    padding: 20px 0;
    box-shadow: 0 4px 6px var(--shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--light-text-color);
}

.school-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none; /* Hide on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

  /* --- Hero Section --- */
.profile-hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--light-text-color);
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.profile-hero-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

  /* --- About Us Section --- */
.about-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.about-text {
    flex: 1.5;
    min-width: 300px;
}

  /* --- Products Section --- */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

  /* --- Contact Section --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

.contact-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8em;
    color: var(--primary-color);
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-info li {
    margin-bottom: 15px;
    font-size: 1em;
}

.contact-info li strong {
    color: var(--secondary-color);
}

.contact-map {
    flex: 1.5;
    min-width: 300px;
}

.contact-map iframe {
    border-radius: 12px;
    box-shadow: 0 4px 10px var(--shadow-medium);
}

  /* --- Animations --- */
.animate-fade-in-up,
.animate-slide-in-left,
.animate-slide-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-in-left {
    transform: translateX(-50px);
}

.animate-slide-in-right {
    transform: translateX(50px);
}

.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

  /* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    .section-title { font-size: 2em; }

    .nav-links {
    position: absolute;
      top: 100%; /* Below the header */
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px var(--shadow-medium);
    transition: transform 0.3s ease-in-out;
      transform: translateY(-350%); /* Hidden by default */
    padding: 20px 0;
    }

    .nav-links.active {
      transform: translateY(0); /* Show when active */
    }

    .nav-links a {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hamburger {
    display: flex;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    .profile-hero-section p { font-size: 1em; }
    .btn { padding: 12px 25px; }
    .about-content, .contact-grid {
    flex-direction: column;
    }
}

/* --- Variabel Warna & Font --- */
:root {
    --bg-color: #f0f4f8; /* Light Grey Blue */
    --primary-color: #3498db; /* Dark Navy */
    --secondary-color: #333; /* Lighter Blue */
    --accent-color: #2ecc71; /* Vibrant Green */
    --text-color: #333;
    --light-text-color: #ecf0f1; /* Off-White */
    --card-bg: #ffffff;
    --border-color: #e0e6ed;
    --shadow-light: rgba(0,0,0,0.05);
    --shadow-medium: rgba(0,0,0,0.1);
    --font-family: 'Poppins', sans-serif;
    --header-height: 120px;
}

/* --- General Styles --- */
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
}

p {
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 15px 0;
    box-shadow: 0 4px 6px var(--shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
}

header.hide-on-scroll {
    transform: translateY(-100%);
}

.homepage-header {
    background-color: transparent;
    box-shadow: none;
}

.homepage-header.scrolled {
    background-color: var(--primary-color);
    box-shadow: 0 4px 6px var(--shadow-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--light-text-color);
}

.logo-images {
    display: flex;
    align-items: center;
    gap: 5px;
}

.school-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--light-text-color);
    margin: 0;
}



.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 25px;
    margin: 0;
    transition: all 0.3s ease-in-out;
}

.nav-links li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links li a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* --- Hero Section (Landing Page) --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    color: var(--light-text-color);
    text-align: center;
    padding: 100px 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

.hero-buttons .btn {
    margin: 0 10px;
    font-size: 1.1em;
    padding: 15px 30px;
}

.btn-primary {
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--light-text-color);
    color: var(--light-text-color);
}

.btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

/* --- Authentication Forms --- */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    text-align: center;
}

.auth-container h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.auth-container input {
    width: calc(100% - 30px);
    padding: 15px;
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-container input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.auth-container button {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.auth-container button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.auth-container p {
    margin-top: 20px;
    font-size: 0.95em;
}

.auth-container p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-container p a:hover {
    text-decoration: underline;
}

.message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Main Content Layout --- */
.main-content {
    padding-top: var(--header-height);
    flex-grow: 1;
}

.logo-text {
    font-size: 1.2em;
    font-weight: 500;
    color: var(--light-text-color);
    margin: 0;
}

/* --- Cards --- */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px var(--shadow-light);
    margin-bottom: 25px;
}

/* --- Dashboard Specific --- */
.welcome-message {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dashboard-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dashboard-card .poin-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.dashboard-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.dashboard-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-card ul li:last-child {
    border-bottom: none;
}

.dashboard-card ul li a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.dashboard-card ul li a:hover {
    color: var(--secondary-color);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 6px;
}

/* --- Materi Listing --- */
.materi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.materi-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.materi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.materi-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.materi-card .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.materi-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.materi-card .kategori {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.materi-card p {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.materi-card .materi-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.materi-card .status {
    padding-left: 8px;
    font-weight: 600;
    font-size: 0.9em;
    
    
}

.status.done { color: var(--accent-color); }
.status.not-done { color: #95a5a6; }

/* --- Materi Detail --- */
.materi-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.materi-detail-header h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
}

.materi-detail-header .subtitle {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

.materi-konten-wrapper {
    padding: 30px;
}

.modul-item {
    margin-bottom: 40px;
}

.modul-item h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px var(--shadow-medium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.text-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.materi-footer-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.status-selesai {
    padding-left: 8px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    
}

/* --- Kuis Page --- */
.quiz-form {
    padding: 30px;
}

.quiz-question {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.quiz-question:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.question-text {
    font-size: 1.15em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.options-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 1em;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.options-group label:hover {
    color: var(--secondary-color);
}

.options-group input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.quiz-result {
    text-align: center;
    padding: 40px;
}

.quiz-result .message {
    font-size: 1.4em;
    margin-bottom: 30px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.quiz-result .btn {
    margin: 0 10px;
}

/* public/css/style.css */

/* ... kode CSS sebelumnya ... */

.quiz-summary {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
}

.summary-text {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
}

.summary-text strong {
    color: var(--accent-color);
}

.quiz-results-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-question-result {
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.quiz-question-result.correct {
    border: 2px solid var(--accent-color);
    background-color: #e8f5e9;
}

.quiz-question-result.incorrect {
    border: 2px solid #e74c3c;
    background-color: #fce4ec;
}

.jawaban-detail {
    margin-top: 15px;
}

.jawaban-detail strong.correct {
    color: var(--accent-color);
}

.jawaban-detail strong.incorrect {
    color: #e74c3c;
}

.quiz-result-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Quest Page --- */
.quest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.quest-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-medium);
}

.quest-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.quest-card p {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.quest-card .quest-reward {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.quest-card .quest-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* --- Scoreboard Page --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-light);
}

table th, table td {
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

table th {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background-color: #f7f9fb;
}

table tbody tr:hover {
    background-color: #eaf2f8;
}

.highlight-user {
    background-color: #fff3cd !important;
    color: #856404 !important;
    font-weight: bold;
}

/* --- Profile Page --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }
    .profile-info-card {
        grid-column: span 2;
    }
}

.profile-info-card h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.profile-info-card p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.profile-info-card p strong {
    color: var(--primary-color);
}

.profile-section h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.profile-section ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.profile-section ul li:last-child {
    border-bottom: none;
}

.status-done {
    padding-left: 8px;
    color: var(--accent-color);
    font-weight: 500;
    border-radius: 6px;
    
}

.status-not-done {
    padding-left: 8px;
    color: #95a5a6;
    font-weight: 500;
    border-radius: 6px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.badge-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: block;
    margin: 0 auto 10px auto;
    color: white;
    font-size: 2em;
    line-height: 60px;
    font-weight: bold;
}

.badge-item h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.badge-item p {
    font-size: 0.85em;
    color: #666;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    box-shadow: 0 -4px 6px var(--shadow-medium);
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
        gap: 15px;
    }
    header ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    header a {
        padding: 5px 10px;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .hero-buttons .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
    }

    .auth-container {
        margin: 40px auto;
        padding: 20px;
    }

    .dashboard-grid, .materi-grid, .quest-grid, .profile-grid {
        grid-template-columns: 1fr;
    }

    .materi-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .materi-card img {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
    .materi-card .content {
        width: 100%;
    }

    .materi-footer-actions {
        flex-direction: column;
        gap: 15px;
    }
    .materi-footer-actions .btn, .materi-footer-actions form button {
        width: 100%;
    }

    table th, table td {
        padding: 10px;
        font-size: 0.9em;
    }
    .badge-item {
        padding: 10px;
    }
    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero-section h1 {
        font-size: 2em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .auth-container {
        padding: 15px;
    }
    .auth-container input, .auth-container button {
        padding: 12px;
        font-size: 1em;
    }

    /* public/css/style.css */

/* ... kode CSS sebelumnya ... */

/* Gaya untuk form CRUD */
.user-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.user-form input, .user-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.user-form button {
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

/* Gaya untuk tabel aksi */
table .action-buttons {
    white-space: nowrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9em;
    border-radius: 6px;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Gaya untuk form di halaman profil siswa */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-form input, .profile-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.profile-form label {
    font-weight: 500;
}

/* public/css/style.css */

/* ... kode CSS sebelumnya ... */

/* Gaya untuk form di halaman profil siswa */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-form input, .profile-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.profile-form label {
    font-weight: 500;
}

.profile-form input[type="file"] {
    padding: 10px;
    background-color: #f7f9fb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.profile-form small {
    font-size: 0.8em;
    color: #666;
    margin-top: -10px;
}

/* Gaya untuk avatar profil */
.profile-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 0 4px 8px var(--shadow-light);
}

/* ... kode CSS lainnya ... */
/* public/css/style.css */

/* ... kode CSS sebelumnya ... */

/* Gaya untuk form pencarian */
.search-card h2 {
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.user-management-section {
    margin-top: 30px;
}

.user-management-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Perbaikan untuk tabel responsif */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

/* Gaya dasar tabel */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

thead th {
    background-color: #f2f2f2;
    padding: 12px 15px;
    text-align: left;
}

tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Gaya khusus untuk kolom email */
.email-cell {
    max-width: 50px; /* Atur lebar maksimum yang diinginkan */
    overflow: hidden; /* Sembunyikan teks yang berlebih */
    text-overflow: ellipsis; /* Tambahkan tanda elipsis (...) pada teks yang terpotong */
    white-space: nowrap; /* Mencegah teks melipat ke baris baru */
    cursor: pointer; /* Memberikan indikator visual bahwa teks dapat dihover */
}

/* Gaya untuk tombol aksi di dalam tabel */
.action-buttons {
    white-space: nowrap;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Penyesuaian untuk tampilan mobile */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 15px;
    }

    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}

/* Gaya untuk form CRUD */
.user-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}
.user-form input, .user-form select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
}
.user-form button {
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    grid-column: span 2;
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    .user-form {
        grid-template-columns: 1fr;
    }
    .user-form button {
        grid-column: span 1;
    }
}

/* public/css/style.css */

/* ... kode CSS sebelumnya ... */

.content-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-form .form-row {
    display: flex;
    flex-direction: column;
}

.content-form label {
    font-weight: 500;
    margin-bottom: 5px;
}

.content-form input[type="text"],
.content-form textarea,
.content-form input[type="file"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

.content-form textarea {
    min-height: 100px;
    resize: vertical;
}

.content-form button,
.content-form a.btn {
    align-self: flex-start;
}

/* public/css/style.css */

/* ... kode CSS yang ada ... */

.search-card {
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.report-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

/* Tombol-tombol Unduh */
.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #2ecc71;
}

.btn-danger {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-danger:hover {
    background-color: #e74c3c;
}

/* public/css/style.css */

/* ... kode CSS yang ada ... */

.search-card {
    margin-bottom: 25px;
}

.search-and-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    flex-grow: 1;
    gap: 10px;
    align-items: center;
}

.search-form input[type="text"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
}

.report-actions {
    display: flex;
    gap: 10px;
}

/* Tombol-tombol Unduh */
.btn-success {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #2ecc71;
}

.btn-danger {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-danger:hover {
    background-color: #e74c3c;
}

/* Media Query untuk Mobile */
@media (max-width: 768px) {
    .search-and-download {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        width: 100%;
        margin-bottom: 15px;
    }

    .report-actions {
        width: 100%;
        justify-content: center;
    }
}

/* public/css/style.css */

/* ... kode CSS yang ada ... */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-logo {
    height: 40px;
    width: auto;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.gallery-item {
    position: relative;
    width: 150px;
    height: 100px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.delete-img-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Fix vertical alignment */
}
/* ... kode CSS yang ada ... */
/* Gaya untuk formulir di halaman tambah/edit materi dan ujian */
.content-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.content-form .form-row {
    display: flex;
    flex-direction: column;
}

.content-form label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #444;
}

.content-form input[type="text"],
.content-form input[type="email"],
.content-form input[type="password"],
.content-form input[type="number"],
.content-form textarea,
.content-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.content-form input:focus,
.content-form textarea:focus,
.content-form select:focus {
    border-color: #007bff;
    outline: none;
}

/* Gaya untuk pesan notifikasi */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Gaya untuk grid dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #666;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Gaya khusus untuk tombol-tombol */
.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-info {
    background-color: #17a2b8;
    color: #fff;
    border: none;
}

.btn-info:hover {
    background-color: #138496;
}

/* Gaya untuk tabel responsif */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9em;
    min-width: 600px; /* Lebar minimum untuk mencegah penyusutan berlebihan */
}

thead th, tbody td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

tbody tr:hover {
    background-color: #e9ecef;
}

.action-buttons a {
    margin-right: 5px;
    font-size: 0.85em;
}

/* Gaya khusus untuk halaman kerjakan_ujian.php */
.question-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.options-list {
    list-style: none;
    padding: 0;
}

.options-list li {
    margin-bottom: 10px;
}

.options-list label {
    display: block;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.options-list label:hover {
    background-color: #f1f1f1;
}

.options-list input[type="radio"] {
    margin-right: 10px;
}

/* Gaya untuk tampilan mobile (di bawah 768px) */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }

    .filter-form input,
    .filter-form select,
    .filter-form .btn {
        width: 100%;
    }

    /* Tabel responsif untuk mobile */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none; /* Sembunyikan header tabel di mobile */
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
    }

    td:last-child {
        border-bottom: none;
    }

    td::before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
    }
    
    /* Tombol aksi di mobile */
    .action-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }
}


}

