/* assets/css/style.css */

/* CSS Variables */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #e0e0e0;
    --heading-font: 'Orbitron', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    background: rgba(26, 26, 26, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
}

.logo-img {
    max-height: 40px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 1px;/*jarak antara fram video dengan dashboard*/
}

section {
    padding: 6px 0;/*jarak antara konten dengan fram video play border*/
}

.hero {
    position: relative;
    text-align: center;
    padding: 100px 0;
    background-color: #333;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
}

#hero-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.content-section h2 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

/* Marquee Text */
.marquee-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 12px 0;
    box-sizing: border-box;
}

.marquee-content {
    display: inline-block;
    animation: marquee-animation 25s linear infinite;
}

@keyframes marquee-animation {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-content span {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery & Video Grids */
.gallery-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.gallery-item, .video-item {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover, .video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.item-description {
    padding: 15px;
    flex-grow: 1;
}

.item-description h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #222;
    color: #666;
    font-size: 1.2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-item h3, .video-item p {
    padding: 0 15px 15px 15px;
}

/* School Grid */
.school-grid, .sekolah-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.school-card, .sekolah-card {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.school-card:hover, .sekolah-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.school-image, .school-image-placeholder {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #222;
}

.school-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
}

.sekolah-card img {
    width: 100%;
    aspect-ratio: 16 / 16;
    object-fit: contain;
    display: block;
    max-height: 100px;
    max-width: 100px;
    background-color: transparent;
    margin: 0 auto;
}

.school-info, .sekolah-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.school-info h3, .sekolah-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.school-info p, .sekolah-content p {
    margin-bottom: 20px;
    color: #ccc;
    flex-grow: 1;
}

.school-details {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.school-details li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #bbb;
    word-break: break-all;
}

.school-details strong {
    color: var(--text-color);
    margin-right: 5px;
}

.school-details a {
    color: var(--secondary-color);
    text-decoration: none;
}

.school-details a:hover {
    text-decoration: underline;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: #0077b3;
}

/* Document List */
.document-list {
    list-style: none;
}

.document-list li {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.document-list a:hover {
    text-decoration: underline;
}

.doc-description {
    color: #999;
}

/* Comments */
.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: 8px;
    min-height: 120px;
    margin-bottom: 15px;
    font-family: var(--body-font);
}

.comments-list {
    margin-top: 30px;
}

.comment-item {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header strong {
    color: var(--primary-color);
}

.comment-date {
    color: #888;
    font-size: 0.9rem;
}

.comment-body {
    margin-bottom: 10px;
}

.comment-actions a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.comment-actions a:hover {
    color: var(--primary-color);
}

.comment-replies {
    margin-top: 15px;
    padding-left: 30px;
    border-left: 2px solid #333;
}

.reply-form-container {
    margin-top: 15px;
    padding: 15px;
    background: #222;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Buttons */
button, .button {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

button:hover, .button:hover {
    background: var(--secondary-color);
}

.button-submit {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.button-cancel {
    background: #555;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.button-edit, .button-delete {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    margin-right: 5px;
    display: inline-block;
}

.button-edit {
    background-color: #2980b9;
}

.button-edit:hover {
    background-color: #3498db;
}

.button-delete {
    background-color: #c0392b;
}

.button-delete:hover {
    background-color: #e74c3c;
}

/* Forms & Authentication */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.auth-form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #333;
    width: 100%;
    max-width: 400px;
}

.auth-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.auth-form-container input[type="text"],
.auth-form-container input[type="email"],
.auth-form-container input[type="password"] {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #444;
    color: var(--text-color);
    border-radius: 5px;
}

.auth-form-container p {
    text-align: center;
    margin-top: 20px;
}

.auth-form-container a {
    color: var(--primary-color);
}

.error {
    color: #ff4d4d;
    text-align: center;
    margin-bottom: 15px;
}

.success {
    color: #4dff4d;
    text-align: center;
    margin-bottom: 15px;
}

/* Admin Dashboard */
.admin-dashboard h1 {
    margin-bottom: 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
}

.admin-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Admin Upload */
.admin-upload .form-group {
    margin-bottom: 20px;
}

.admin-upload label {
    display: block;
    margin-bottom: 8px;
}

.admin-upload input[type="text"],
.admin-upload input[type="file"],
.admin-upload textarea,
.admin-upload select {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid #333;
    color: var(--text-color);
    border-radius: 5px;
}

/* Admin Settings */
.admin-settings h1 {
    margin-bottom: 10px;
}

.admin-settings p {
    margin-bottom: 30px;
    color: #999;
}

.settings-form .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #333;
}

.settings-form label {
    flex: 1;
    font-weight: bold;
    margin-right: 20px;
    margin-bottom: 0;
}

.settings-form input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 15px;
}

.settings-form span {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Tables */
.comments-table, .content-table, .menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--card-bg);
    border: 1px solid #333;
}

.comments-table th, .comments-table td,
.content-table th, .content-table td,
.menu-table th, .menu-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.comments-table th, .content-table th, .menu-table th {
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: bold;
}

.content-table th {
    background-color: #222;
}

.content-table tbody tr:hover {
    background-color: #222;
}

.menu-table input[type="text"],
.menu-table input[type="number"] {
    width: 100%;
    padding: 8px;
    background: #333;
    border: 1px solid #555;
    color: var(--text-color);
    border-radius: 4px;
}

.menu-table input[type="checkbox"] {
    transform: scale(1.2);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #333;
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .gallery-grid, .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* ======================================================================= */
/* --- TAMBAHAN: Gaya Border & Hover untuk Kartu (Sekolah, Galeri, Video) --- */
/* ======================================================================= */

/* --- 1. Terapkan Border dan Efek Hover ke Semua Kartu --- */
.sekolah-card, .gallery-item, .video-item {
    border: 2px solid #333; /* Border solid 2px */
    border-radius: 12px; /* Sudut membulat yang lebih besar */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; /* Tambahkan transisi untuk warna border */
}

.sekolah-card:hover, .gallery-item:hover, .video-item:hover {
    border-color: var(--primary-color); /* Border berubah warna saat hover */
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4); /* Efek glow */
}


/* --- 2. Atur Sudut Membulat pada Gambar di Dalam Kartu --- */
/* Gambar di kartu sekolah */
.sekolah-card img {
    border-top-left-radius: 10px; /* Sesuaikan dengan border-radius card dikurangi 2px */
    border-top-right-radius: 10px;
}

/* Gambar di kartu galeri dan video */
.gallery-item img, .video-wrapper {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}


/* --- 3. Perbaiki Padding Konten Agar Lebih Rapi --- */
/* Menambahkan padding agar konten tidak mepet dengan border */
.sekolah-content, .item-description {
    padding: 20px; /* Padding yang lebih konsisten */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Video item membutuhkan sedikit penyesuaian khusus untuk padding */
.video-item h3, .video-item p {
    padding: 0 20px 20px 20px; /* Padding kiri-kanan-bawah, karena atas sudah dihandle oleh video-wrapper */
}

/* Start https://www.cursors-4u.com */ * {cursor: url(https://cur.cursors-4u.net/symbols/sym-5/sym452.cur), auto !important;} /* End https://www.cursors-4u.com */

