/* General Styles */
:root {
    --primary-color: #00e676; /* Hijau cerah untuk aksen teknologi */
    --secondary-color: #212121; /* Abu-abu sangat tua untuk footer dan nav */
    --base-dark-gray: #333333; /* Abu-abu tua utama */
    --text-color: #e0e0e0; /* Teks terang untuk latar gelap */
    --light-text-color: #bdbdbd; /* Teks sedikit lebih terang */
    --medium-gray: #424242; /* Abu-abu sedang untuk bagian latar belakang */
    --card-background: #2b2b2b; /* Latar belakang kartu */
    --border-color: #555555; /* Warna border */
    --white: #fff;
    --transition-speed: 0.3s;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--base-dark-gray);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding-top: 80px; /* Sesuaikan dengan tinggi navbar */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar (from menu.css / landing.css adaptation) */
.main-nav {
    background-color: var(--secondary-color);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.nav-brand img {
    height: 60px; /* Ukuran logo */
    margin-right: 10px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu .nav-link {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed) ease;
}

.nav-menu .nav-link.active,
.nav-menu .nav-link:hover {
    color: var(--primary-color);
}

.nav-menu .nav-link.active::after,
.nav-menu .nav-link:hover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transform: scaleX(1);
    transition: transform var(--transition-speed) ease-out;
}

.nav-menu .nav-link:not(.active)::after {
    transform: scaleX(0);
    transform-origin: left;
}

.menu-toggle {
    display: none; /* Sembunyikan di desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative; /* Untuk posisi ikon bar */
    z-index: 1001; /* Pastikan di atas menu */
}

.menu-toggle .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #0e1b26, #1f2937, #0e1b26);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Schedule Sections */
.schedule-section, .cleaning-schedule-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.schedule-section h2, .cleaning-schedule-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.table-container {
    overflow-x: auto; /* Untuk responsivitas tabel */
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 20px;
}

.class-schedule, .cleaning-schedule {
    width: 100%;
    border-collapse: separate; /* Menggunakan separate untuk border-radius di cell */
    border-spacing: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-color);
}

.class-schedule th, .cleaning-schedule th {
    background-color: var(--medium-gray);
    color: var(--primary-color);
    padding: 15px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
}

.class-schedule td, .cleaning-schedule td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(85, 85, 85, 0.5);
    background-color: var(--card-background);
    transition: background-color var(--transition-speed) ease;
}

.class-schedule tbody tr:nth-child(even) td,
.cleaning-schedule tbody tr:nth-child(even) td {
    background-color: #313131; /* Sedikit lebih gelap */
}

/* Class Schedule specific */
.class-schedule .subject-cell {
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.class-schedule .subject-cell:hover {
    background-color: var(--primary-color); /* Ubah latar belakang saat hover */
    color: var(--secondary-color); /* Ubah teks saat hover */
    box-shadow: inset 0 0 15px rgba(0, 230, 118, 0.4); /* Glow internal */
}

.class-schedule .break-time {
    background-color: var(--medium-gray);
    color: var(--primary-color);
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--border-color);
}

/* Teacher Pop-up */
.teacher-popup {
    display: none; /* Disembunyikan secara default */
    position: fixed;
    top: 50%;
    left: 20px; /* Posisi di kiri */
    transform: translateY(-50%);
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 230, 118, 0.7); /* Glow kuat */
    padding: 25px;
    color: var(--white);
    z-index: 1050;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.teacher-popup.active {
    display: block; /* Tampilkan dengan block untuk animasi */
    opacity: 1;
    visibility: visible;
}

.teacher-popup h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.teacher-popup p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.teacher-popup .close-popup-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
}

.teacher-popup .close-popup-btn:hover {
    color: var(--white);
}

/* Footer (from menu.css / landing.css adaptation) */
footer {
    background: var(--secondary-color);
    color: var(--light-text-color);
    padding: 60px 50px 30px 50px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid var(--border-color);
    margin-top: 50px; /* Jarak dari konten di atas */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    min-width: 200px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-column p {
    font-size: 15px;
    color: var(--light-text-color);
    margin: 8px 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    display: block;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-button {
    display: flex;
    align-items: center;
    color: var(--light-text-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.social-button:hover {
    color: var(--primary-color);
}

.social-button i {
    background-color: var(--medium-gray);
    color: var(--white);
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    font-size: 18px;
    display: inline-block;
    transition: background-color var(--transition-speed) ease;
}

.social-button:hover i {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 14px;
    color: var(--light-text-color);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
.copyright p {
    margin: 0;
}


/* Responsive Design */
@media (max-width: 992px) {
    .main-nav {
        padding: 15px 30px;
    }
    .nav-menu {
        flex-direction: column;
        background-color: var(--secondary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        display: none; /* Sembunyikan secara default */
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity var(--transition-speed) ease-out, transform var(--transition-speed) ease-out;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .schedule-section h2, .cleaning-schedule-section h2 {
        font-size: 2rem;
    }
    .class-schedule, .cleaning-schedule {
        font-size: 0.85rem;
    }
    .class-schedule th, .cleaning-schedule th,
    .class-schedule td, .cleaning-schedule td {
        padding: 10px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
        align-items: center;
    }
    .teacher-popup {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 10px 20px;
    }
    .nav-brand img {
        height: 35px;
    }
    .nav-brand a {
        font-size: 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .schedule-section h2, .cleaning-schedule-section h2 {
        font-size: 1.8rem;
    }
    .class-schedule th, .cleaning-schedule th,
    .class-schedule td, .cleaning-schedule td {
        padding: 8px;
    }
}