/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1 {
    font-family: 'Source Sans Pro', sans-serif;
    text-align: center;
    font-weight: bold;
    padding: 40px;
}

h2 {
    font-family: 'Source Sans Pro', sans-serif;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    font-size: 20px;
}

h3 {
    font-family: 'Source Sans Pro', sans-serif;
    text-align: center;
    font-weight: bold;
}

p {
    margin-top: 10px;
}

/* ==========================================
   SLIDESHOW COMPONENT
   ========================================== */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    
}

.slides {
    display: flex;
    transition: transform 1s ease-in-out;
    width: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dots Indicator */
.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: #007bff;
}

/* ==========================================
   CONTAINER LAYOUTS
   ========================================== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    margin-bottom: 50px;
}

.visi-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 50px;
    margin-bottom: 50px;
}

/* ====== RESPONSIVE HP ====== */
@media (max-width: 768px) {

    .slide img {
        height: 180px;
    }

    .visi-container {
        flex-direction: column;
    }

    .card1 {
        margin-bottom: 15px;
    }

    #visi h2 {
        font-size: 22px;
    }

    .card1 h3 {
        font-size: 18px;
    }

    .card1 p,
    .card1 li {
        font-size: 14px;
    }
}
/* ==========================================
   CARD COMPONENTS
   ========================================== */
.card1 {
    background-color: #ffffff;
    color: #000000;
    width: 350px;
    border-radius: 12px;
    margin-top: 50px;
    height: 300px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card1 p {
    margin-top: 20px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
}

.card1 li {
    margin-top: 5px;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
}

.card1 span {
    margin-top: 30px;
    display: inline-block;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
}

.card1:hover {
    transform: translateY(-10px);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-color: #54789d;
}

.card2 {
    background-color: #ffffff;
    color: #000000;
    padding: 20px;
    width: 350px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card2 p {
    margin: 0;
}

.card2:hover {
    transform: translateY(-10px);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-color: #54789d;
}

/* Card Header */
.card-header {
    background: #2a428f;
    color: #fff;
    padding: 20px;
    font-size: 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header .card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: normal;
}

/* Card Body */
.card-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.card-text p {
    font-weight: bold;
}

/* Card Edit Form */
.card-edit {
    background: #ffffff;
    width: 100%;
    margin: 40px auto;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid #e3e3e3;
    overflow: hidden;
}

.card-edit-header {
    background: #0d47a1;
    padding: 18px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.title-center {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.card-header-right {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

.card-edit-body {
    padding: 30px 35px;
}

.card-edit-body label {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 6px;
}

.card-edit-body input,
.card-edit-body select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: 0.3s;
}

.card-edit-body input:focus,
.card-edit-body select:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 6px rgba(13, 71, 161, 0.3);
    outline: none;
}

.card-edit-footer {
    padding: 18px 30px;
    text-align: right;
    background: #f1f1f1;
}

/* ==========================================
   TABLE STYLES
   ========================================== */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

.table thead tr {
    background: #0d47a1;
    color: #fff;
    text-align: center;
}

.table thead th {
    padding: 12px 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
}

.table tbody td {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    text-align: center;
}

.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table tbody tr:hover {
    background-color: #f1f7ff;
    transition: background-color 0.3s ease;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table-custom th {
    background: #4A90E2;
    color: white;
    padding: 10px;
    text-align: left;
}

.table-custom td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table-custom tr:hover {
    background-color: #f5f5f5;
}

/* ==========================================
   PROFILE & DETAIL SECTIONS
   ========================================== */
.box-profile h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
    background: #fdfdfd;
}

.list-group-item b {
    color: #333333;
    font-weight: 500;
}

.list-group-item span {
    color: #555555;
}

.list-group-item:nth-child(even) {
    background: #f9f9f9;
}

.list-group-item:hover {
    background: #f1f7ff;
    transition: 0.3s ease-in-out;
}

.detail-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-left {
    flex: 1;
}

.detail-right {
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   FOTO SISWA
   ========================================== */
.foto-siswa-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 10px;
    height: 400px;
}

.foto-siswa-box img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   GALLERY & POPUP
   ========================================== */
.gallery {
    width: 100%;
}

.thumbnail {
    width: 100%;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
    transform: scale(1.05);
}
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;        /* ➜ BIKIN POPUP BISA DI SCROLL */
    padding: 40px 0;         /* ➜ Biar konten ada jarak dari atas */
}

.popup-content {
    max-width: 90%;
    width: auto;
    max-height: 90vh;        /* ➜ BATAS TINGGI 90% LAYAR */
    border-radius: 10px;
    margin: auto;           /* ➜ Biar tetap center */
    display: block;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s ease forwards;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    color: #ff6b6b;
}

/* ==========================================
   SEARCH BOX
   ========================================== */
.search-box {
    width: 300px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin: 20px;
    transition: 0.3s;
}

.search-right {
    float: right;
}

.search-box:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

/* ==========================================
   UTILITIES
   ========================================== */
.list-bulet {
    list-style-type: disc;
    padding-left: 20px;
    color: #343a40;
}

.list-bulet li {
    margin-bottom: 5px;
}

.reveal {
    margin-top: 50px;
    padding: 20px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-item {
    color: #ffffff;
}

.button {
    margin-top: 15px;
}

.btn-primary.btn-sm {
    margin-bottom: 15px;
}

.btn-tool {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
}

.btn-tool:hover {
    color: #ffc107;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .table {
        font-size: 0.85rem;
    }

    .btn-group .btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }

    .card-header,
    .card-body {
        padding: 15px;
    }

    .box-profile h3 {
        font-size: 1.1rem;
    }

    .list-group-item {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .foto-siswa-box {
        height: 200px;
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .search-box {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .card {
        margin: 20px;
    }

    .form-group label {
        margin-bottom: 4px;
    }

    .card-edit {
        margin: 20px;
    }

    .card-edit-body {
        padding: 20px;
    }
}

.logo-img {
    width: 45px;           /* ukuran bisa kamu sesuaikan */
    height: 45px;
    border-radius: 50%;    /* supaya bulat */
    object-fit: cover;     /* agar gambar tidak melebar */
    margin-right: 10px;    /* jarak ke teks */
}
.nav-item.logo {
    display: flex;
    align-items: center;   /* agar teks sejajar vertikal */
    font-weight: bold;
    color: white;          /* atau sesuaikan warna navbar */
    gap: 10px;

}
/* Layout atas & bawah */
.dataTables_wrapper .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dataTables_wrapper .bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

/* Pagination */
.dataTables_paginate {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 5px;
    float: none !important;
}

.dataTables_paginate .paginate_button {
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.dataTables_paginate .next {
    padding: 4px 10px;
    margin: 0 2px;
    bottom:auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

/* Aktif */
.dataTables_paginate .paginate_button.current {
    background: #0d6efd !important;
    color: #fff !important;
    cursor: default;
}
/* ==========================================
   FIX: Pagination Next Button
   ========================================== */
.dataTables_paginate .next {
    position: static !important;  /* Override position absolute dari slideshow */
    top: auto !important;
    right: auto !important;
    transform: none !important;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    color: #333;
    font-size: 14px;
}

.dataTables_paginate .next:hover {
    background-color: #e9ecef;
}

.dataTables_paginate .previous {
    position: static !important;
    padding: 4px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}