@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

body {
    font-family: "Poppins", sans-serif;
}

/* Button */
.btn {
    white-space: nowrap;
}
.btn-danger {
    background-color: #bd001b;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-color: #bd001b;
    padding: 0.375rem 0.75rem;
    color: white;
}
.btn-outline-danger {
    background-color: transparent;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-color: #bd001b;
    padding: 0.375rem 0.75rem;
    color: #bd001b;
}

/* Pastikan btn-sm konsisten di seluruh sistem */
.btn-sm,
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
    border-radius: 0.2rem !important;
}

/* Navbar styles dipusatkan di layout publik */

#hero {
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: auto;
    border-image: none;
}

.hero-title {
    padding-top: 200px;
}

/* Responsive Layar Kecil 450*/
@media screen and (min-width: 380px) {
    .hero-text {
        font-size: 35px;
        font-weight: 600;
    }

    .scroll-nav-active {
        background-color: white;
        /* border-bottom: 1px solid #bd001b; */
        box-shadow: 1px 1px 11px -1px rgba(1, 1, 1, 0.08);
    }
}
/* Responsive Layar Kecil 450*/
@media screen and (min-width: 450px) {
    .hero-text {
        font-size: 35px;
        font-weight: 600;
    }

    .scroll-nav-active {
        background-color: white;
        /* border-bottom: 1px solid #bd001b; */
        box-shadow: 1px 1px 11px -1px rgba(1, 1, 1, 0.08);
    }
}
/* Responsive Layar Kecil 550*/
@media screen and (min-width: 550px) {
    .hero-text {
        font-size: 35px;
        font-weight: 600;
    }
    .scroll-nav-active {
        background-color: white;
        /* border-bottom: 1px solid #bd001b; */
        box-shadow: 1px 1px 11px -1px rgba(1, 1, 1, 0.08);
    }
}
/* Responsive Layar Kecil 850*/
@media screen and (min-width: 800px) {
    .hero-text {
        font-size: 65px;
        font-weight: 600;
    }
}

/* image */
.berita img {
    height: 250px;
    /* Atur tinggi yang sesuai dengan kebutuhan */
    object-fit: cover;
    /* Memastikan gambar tetap proporsional */
    width: 100%;
    /* Pastikan lebar gambar mengikuti elemen */
}

/* join */
.stripe {
    height: 5px;
    width: 40px;
    background-color: #bd001b;
}

/* video */
#video {
    background-image: url("../../assets/il-bg-video.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 500px;
}

/* foto */
#foto img {
    height: 200px;
    /* Sesuaikan tinggi dengan kebutuhan */
    object-fit: cover;
    /* Memastikan gambar terpotong secara proporsional */
    width: 100%;
    /* Memastikan gambar memenuhi lebar kolom */
    border-radius: 8px;
    /* Opsional, tambahkan efek sudut melengkung */
}

#foto .text-center h2 {
    margin-top: 10px;
    /* Memberikan jarak antara gambar dan teks */
    color: black;
    /* Warna teks agar terlihat jelas */
}
/* Gaya dasar untuk gambar */
#foto .image-link img {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    /* Efek transisi halus */
    border-radius: 10px;
    /* Membuat sudut gambar melengkung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Bayangan lembut */
}

/* Efek hover untuk gambar */
#foto .image-link:hover img {
    transform: scale(1.1);
    /* Membesarkan gambar */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    /* Bayangan lebih gelap saat hover */
    filter: brightness(1.1);
    /* Sedikit mencerahkan gambar */
}

/* Gaya dasar untuk teks */
#foto .text-center {
    margin-top: 10px;
    color: #ffffff;
    /* Warna teks putih untuk kontras */
    font-weight: 500;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    /* Efek transisi halus */
}

/* Efek hover untuk teks */
#foto .image-link:hover + .text-center {
    color: #ffcc00;
    /* Warna teks berubah menjadi kuning keemasan */
    transform: scale(1.05);
    /* Sedikit membesarkan teks */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    /* Menambahkan bayangan lembut pada teks */
}

/* Gaya tambahan untuk tombol */
#foto .btn-outline-light {
    border: 2px solid #ffcc00;
    color: #ffcc00;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    -webkit-transition:
        background-color 0.3s ease,
        color 0.3s ease;
    -moz-transition:
        background-color 0.3s ease,
        color 0.3s ease;
    -ms-transition:
        background-color 0.3s ease,
        color 0.3s ease;
    -o-transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

#foto .btn-outline-light:hover {
    background-color: #ffcc00;
    color: #ffffff;
    border-color: #ffcc00;
}
/* paralax background */
.section-photo {
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
    height: 500px;
    width: 100%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.parallax {
    background-image: url("../../assets/image/il-bg-foto.jpeg");
}

.stripe-putih {
    height: 5px;
    width: 40px;
    background-color: #ffffff;
}

.fa-edit:hover {
    color: orange;
}

.fa-trash:hover {
    color: red;
}

.siswa-link {
    color: black;
    /* Tetap berwarna hitam */
    text-decoration: none;
    /* Menghilangkan garis bawah default */
}

.siswa-link:hover {
    color: blue;
    /* Ubah warna saat hover, jika diinginkan */
    text-decoration: underline;
    /* Opsional: Menambahkan garis bawah saat hover */
}

/* Toast Succes */
.toast-success {
    background-color: #51a351 !important;
    /* Hijau */
    color: white !important;
}

/* Toast Error */
.toast-error {
    background-color: red !important;
    /* Hijau */
    color: white !important;
}

/* posisi gambar ditengah */
.avatar-cell {
    text-align: center;
    /* Mengatur gambar di tengah secara horizontal */
    vertical-align: middle;
    /* Mengatur gambar di tengah secara vertikal */
}

.avatar {
    vertical-align: middle;
    /* Ini diperlukan untuk mengatur gambar di tengah secara vertikal */
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* footer */
#footer h5 {
    color: #333;
    font-size: 1.25rem;
}

#footer .nav-link {
    color: #555;
    font-size: 0.95rem;
    transition: color 0.3s ease-in-out;
}

/* #footer .nav-link:hover {
    color: #000;
    text-decoration: underline;
} */

#footer p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

#footer img {
    transition: transform 0.3s ease-in-out;
}

#footer img:hover {
    transform: scale(1.1);
}

/* Efek hover yang menarik untuk link */
.link-hover {
    position: relative;
    text-decoration: none;
    color: #6c757d;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.link-hover:hover {
    color: #007bff;
    /* Warna teks saat hover */
    transform: scale(1.05);
    /* Sedikit perbesar teks saat hover */
}

/* Garis bawah animasi saat hover */
.link-hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #007bff;
    /* Warna garis */
    transition: width 0.3s ease;
}

.link-hover:hover::after {
    width: 100%;
    /* Garis bawah penuh saat hover */
}

/* Photo Crop Preview (4x6 aspect ratio = 2:3) */
.profile-photo-crop-preview {
    width: 100px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid rgba(13, 110, 253, 0.2);
    background: #f8f9fa;
}

.photo-crop-area {
    min-height: 420px;
    max-height: 65vh;
    overflow: hidden;
    background: #f8fafc;
    border-radius: 8px;
}

.photo-crop-area img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   Admin Panel — Table Border Radius (konsisten dengan card)
   ============================================================ */

/* Card pembungkus tabel: buat rounded, tabel di dalamnya tetap full width */
.card:has(.table) {
    overflow: hidden;
}

/* Semua tabel di dalam card: only-top border-radius */
.card .table {
    border-collapse: collapse;
    margin-bottom: 0;
}

.card .table:first-child {
    border-radius: 0;
}

/* thead (table-dark / style bootstrap) — rounded top-left & top-right */
.card .table > thead:first-child > tr:first-child > th:first-child {
    border-top-left-radius: 0.375rem;
}
.card .table > thead:first-child > tr:first-child > th:last-child {
    border-top-right-radius: 0.375rem;
}

/* Kalau tidak ada thead (table kosong / hanya tbody), kasih radius di tr pertama */
.card .table > tbody:first-child > tr:first-child > td:first-child {
    border-top-left-radius: 0.375rem;
}
.card .table > tbody:first-child > tr:first-child > td:last-child {
    border-top-right-radius: 0.375rem;
}

/* Footer pagination card — rounded bottom */
.card-footer:first-child {
    border-radius: 0 0 0.375rem 0.375rem;
}

/* ── Compact Card Header: Tampil + Pagination ── */
.card .card-header {
    background: transparent;
}

/* Compact pagination buttons */
.card .pagination {
    margin-bottom: 0;
}
.card .pagination .page-link {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
}
.card .pagination .page-item:first-child .page-link,
.card .pagination .page-item:last-child .page-link {
    border-radius: 0.2rem;
}
.card .pagination .page-item .page-link {
    border-radius: 0.2rem;
    margin: 0 1px;
}
