/*
 * Gaya tambahan dari blok <style> inline aplikasi PPDB lama
 * (tema1.php, profile_sekolah_*.php, datadaftar_*.php, masuk.php, index.php portal/admin).
 * Dipindah ke file agar sesuai Content Security Policy; isinya dipertahankan.
 */

/* ---------- Pre-loader (semua halaman lama) ---------- */
.pre-loader {
    background: #fff;
    background-position: center center;
    background-size: 13%;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 12345;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pre-loader .loader-logo { padding-bottom: 15px; }

.pre-loader .loader-progress {
    height: 8px;
    border-radius: 15px;
    max-width: 200px;
    margin: 0 auto;
    display: block;
    background: #ecf0f4;
    overflow: hidden;
}

.pre-loader .bar {
    width: 0%;
    height: 8px;
    display: block;
    background: #1b00ff;
}

.pre-loader .percent { text-align: center; font-size: 24px; }

.pre-loader .loading-text {
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    padding-top: 15px;
}

/* ---------- Halaman depan (tema1) ---------- */
.slider { width: 100%; margin: 0 auto; }
.slick-slide { padding: 20px; }

.embed-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.soft-rounded-dropdown {
    border-radius: 12px;
    padding: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
}

.soft-rounded-dropdown .dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.soft-rounded-dropdown .dropdown-item:hover {
    background-color: #f0f0f0;
    color: #333;
}

.card-body-pendaftaran { display: none; }
.card-body-pendaftaran.is-open { display: block; }
.card-header-toggle { background-color: #005f6b; cursor: pointer; }
.card-header-teal { background-color: #005f6b; }

/* ---------- Halaman profil / data pendaftar / FAQ ---------- */
body.front-sub,
body.front-sub html { height: 100%; margin: 0; }

body.front-sub .home-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.front-sub .home-content { margin-top: 0; padding-top: 0; }
body.front-sub .home-content-wrapper { flex: 1; }

body.front-sub .home-footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    text-align: center;
}

body.front-sub .home-header { padding-top: 0; }
body.front-sub .home-banner { padding-top: 0; margin-top: -20px; }

.upper { text-transform: uppercase; }
.lower { text-transform: lowercase; }
.cap { text-transform: capitalize; }

.profil-page .testomoni-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.profil-page .testimoni-card:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

.profil-page .image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.profil-page .image-container img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.profil-page .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 95, 107, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.profil-page .text-overlay {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    transform: translateY(100%);
    transition: transform 1s ease;
}

.profil-page .image-container:hover .overlay { opacity: 1; }
.profil-page .image-container:hover .text-overlay { transform: translateY(0); }

.profil-page .popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.profil-page .popup.is-open { display: flex; }
.profil-page .popup-image { max-width: 90%; max-height: 80%; }

.profil-page .popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 1;
}

.profil-page .img-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: #f0f0f0;
    cursor: pointer;
}

.profil-page .video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
}

.profil-page .video-nav--prev { left: 10px; }
.profil-page .video-nav--next { right: 10px; }

/* ---------- Portal siswa & admin (Vali) ---------- */
.app .btn { cursor: pointer; }

.app .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    opacity: 0.8;
}

.app .preloader .loading {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font: 14px arial;
}

.app .app-sidebar__user-name { text-transform: capitalize; }

.app .tab-done { color: #28a745; font-weight: 700; margin-left: 4px; }

.app .thumb { width: 64px; height: 48px; object-fit: cover; border: 1px solid #ddd; }
.app .thumb--lg { width: 160px; height: auto; max-height: 120px; object-fit: contain; }

.app .audit-json {
    white-space: pre-wrap;
    word-break: break-all;
    font-size: .75rem;
    max-width: 40rem;
    background: #f5f5f5;
    padding: .4rem;
    margin: .25rem 0 0;
}

.app .captcha-img,
.login100-form .captcha-img { border: 1px solid #ddd; background: #fff; height: 50px; }

.code-input { text-transform: uppercase; letter-spacing: .15em; }
