/* ================================
   RESET
   tes komentar
================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #123f70;
    color: #17365d;
}


/* ================================
   WEBSITE
================================ */

.website {
    width: 100%;
    max-width: 750px;
    min-height: 100vh;
    margin: auto;
    background: #123f70;
    overflow: hidden;
}


/* ================================
   HEADER
================================ */

.header {
    position: relative;
    background: #123f70;
    padding: 35px 20px 70px;
}


/* ================================
   HEADER CONTENT
================================ */

.header-content {
    text-align: center;
    color: white;
    margin-bottom: 25px;
}

.logo {
    width: 80px;
    height: 80px;

    margin: auto;
    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: white;
    color: #123f70;

    font-size: 28px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.header-content h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.header-content p {
    font-size: 13px;
    color: #dbe8f6;
}


/* ================================
   SEARCH BOX
================================ */

.search-box {
    position: relative;

    width: 92%;
    margin: 0 auto;

    padding: 25px;

    background: white;

    border-radius: 25px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.search-box h2 {
    text-align: center;

    color: #173f6b;

    font-size: 20px;
    font-weight: 700;

    margin-bottom: 5px;
}

.search-box p {
    text-align: center;

    color: #718096;

    font-size: 12px;

    margin-bottom: 18px;
}


/* ================================
   SEARCH AREA
================================ */

.search-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-area input {
    flex: 1;

    height: 55px;

    padding: 0 20px;

    border: 1px solid #d5e0ed;

    border-radius: 30px;

    outline: none;

    background: #f5f8fc;

    color: #173f6b;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;
}

.search-area input::placeholder {
    color: #9aa9ba;
}

.search-area input:focus {
    border-color: #286da5;
    background: white;
}


/* ================================
   SEARCH BUTTON
================================ */

.search-area button {
    width: 55px;
    height: 55px;
    flex-shrink: 0;

    border: none;
    border-radius: 50%;

    background: #286da5;
    color: white;

    font-size: 20px;
    cursor: pointer;

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);

    transition: 0.2s;

    margin-right: 8px;
}

.search-area button:hover {
    background: #1d5788;
    transform: scale(1.05);
}

.search-area button:active {
    transform: scale(0.96);
}

.search-area button:hover {
    background: #1d5788;
    transform: scale(1.05);
}

.search-area button:active {
    transform: scale(0.96);
}


/* ================================
   CONTENT
================================ */

.content {
    padding: 20px 25px 60px;

    background: #123f70;
}


/* ================================
   MESSAGE
================================ */

#message {
    margin-bottom: 20px;
}

.message {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;

    border-radius: 15px;

    font-size: 12px;
    font-weight: 500;
}

.message.success {
    background: #e5f6ed;
    color: #26734d;
}

.message.error {
    background: #fff0f0;
    color: #b23b3b;
}

.message.loading {
    background: #edf4fb;
    color: #286da5;
}


/* ================================
   CARD
================================ */

.card {
    background: white;

    margin-bottom: 18px;

    padding: 22px;

    border-radius: 22px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}


/* ================================
   CARD TITLE
================================ */

.card-title {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 20px;
}

.card-title .icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #e7f0fa;

    color: #286da5;

    font-size: 18px;
}

.card-title h2 {
    color: #173f6b;

    font-size: 17px;
    font-weight: 700;

    margin-bottom: 2px;
}

.card-title p {
    color: #8795a7;

    font-size: 11px;
}


/* ================================
   DATA LIST
================================ */

.data-list {
    width: 100%;
}

.data-row {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 15px;

    padding: 14px 0;

    border-bottom: 1px solid #e8edf3;
}

.data-row:first-child {
    padding-top: 0;
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-row span {
    color: #7187a0;

    font-size: 12px;

    flex: 0 0 40%;
}

.data-row strong {
    color: #173f6b;

    font-size: 13px;
    font-weight: 600;

    text-align: right;

    flex: 1;

    word-break: break-word;
}


/* ================================
   CATATAN
================================ */

.catatan {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.catatan-item {
    padding: 15px;

    border-radius: 15px;

    background: #f3f7fb;

    border-left: 4px solid #286da5;
}

.catatan-item span {
    display: block;

    color: #718096;

    font-size: 11px;

    margin-bottom: 5px;
}

.catatan-item p {
    color: #284b70;

    font-size: 13px;

    line-height: 1.7;
}


/* ================================
   FOOTER
================================ */

footer {
    background: #123f70;

    text-align: center;

    padding: 25px 20px 35px;

    color: #dbe8f6;
}

.footer-icon {
    width: 40px;
    height: 40px;

    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);

    color: white;

    font-size: 15px;
}

footer p {
    color: white;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 3px;
}

footer span {
    font-size: 10px;

    color: #c5d7e9;
}


/* ================================
   RESPONSIVE HP
================================ */

@media (max-width: 600px) {

    .header {
        padding: 30px 15px 55px;
    }

    .header-content h1 {
        font-size: 22px;
    }

    .header-content p {
        font-size: 12px;
    }

    .logo {
        width: 58px;
        height: 58px;

        font-size: 24px;
    }

    .search-box {
        width: 94%;
        padding: 20px;
    }

    .search-box h2 {
        font-size: 17px;
    }

    .content {
        padding: 15px 15px 45px;
    }

    .card {
        padding: 19px;
        border-radius: 19px;
    }

    .card-title .icon {
        width: 42px;
        height: 42px;
    }

    .card-title h2 {
        font-size: 15px;
    }

    .data-row span {
        font-size: 11px;
    }

    .data-row strong {
        font-size: 12px;
    }
}


/* ================================
   HP KECIL
================================ */

@media (max-width: 380px) {

    .search-box {
        width: 95%;
        padding: 17px;
    }

    .search-area {
        gap: 7px;
    }

    .search-area input {
        height: 48px;
        padding: 0 15px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
    }

    .search-area button {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .data-row {
        gap: 10px;
    }
}

/* ================================
   PERIODE LAPORAN
================================ */

.period-card {
    display: flex;
    align-items: center;

    background: white;

    margin-bottom: 18px;
    padding: 16px 22px;

    border-radius: 22px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* IKON PERIODE */
.period-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #e7f0fa;

    color: #286da5;

    font-size: 18px;

    margin-right: 13px;
}

/* JUDUL + SUBJUDUL */
.period-info {
    display: flex;
    flex-direction: column;
}

.period-info h2 {
    color: #173f6b;

    font-size: 17px;
    font-weight: 700;

    margin: 0 0 2px 0;
}

.period-info p {
    color: #8795a7;

    font-size: 11px;

    margin: 0;
}

/* BULAN DI KANAN */
.period-card > strong {
    margin-left: auto;

    color: #173f6b;

    font-size: 14px;
    font-weight: 600;
}

/* ================================
   CONTACT US
================================ */

.contact-us {
    display: flex;
    justify-content: center;
    margin: 25px 0;
}

.contact-us a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 18px;

    background: white;
    color: #173f6b;

    border-radius: 20px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
}

.contact-us i {
    font-size: 17px;
}

/* ==============================
   JARAK KARTU TAHUN AKADEMIK
============================== */

.academic-info {
    flex: 1;
    min-width: 0;
}

.academic-info h2 {
    margin: 0 0 2px 0;
    font-size: 17px;
    font-weight: 700;
    color: #173f6b;
    white-space: nowrap;
}

.academic-info p {
    margin: 0;
    font-size: 11px;
    color: #8795a7;
}

/* Bulan lebih dekat dengan bagian atas */
.card:has(.academic-info) .data-row {
    margin-top: -15px;
}

#message {
    transition: opacity 0.5s ease;
}

#message.fade-out {
    opacity: 0;
}

/* =================================
   DATA SANTRI - FOTO DI ATAS
================================= */

.data-santri-card {
    text-align: center;
    padding: 28px 24px 24px;
}

/* FOTO BULAT */
.data-santri-card .foto-santri {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.data-santri-card .foto-santri img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    display: block;

    border: 3px solid #c7b77a;

    background: #202c3e;

    box-shadow:
        0 0 0 6px rgba(199, 183, 122, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.25);
}


/* NAMA */
.profile-name {
    text-align: center;
    margin-bottom: 20px;
}

.profile-name span {
    display: block;
    color: #173f6b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.profile-name h2 {
    margin: 0;
    color: #173f6b;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.profile-name p {
    margin: 4px 0 0;
    color: #173f6b;
    font-size: 13px;
    font-weight: 600;
}

/* =================================
   DATA PILL
================================= */

.profile-info {
    display: flex;
    flex-direction: column;

    gap: 9px;

    text-align: left;
}


/* SEMUA PILL */
.info-pill {
    min-height: 39px;

    padding: 7px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 22px;

    border: 2px solid;

    box-sizing: border-box;
}


/* LABEL */
.info-pill span {
    font-size: 13px;
    font-weight: 500;
}


/* NILAI */
.info-pill strong {
    font-size: 13px;
    font-weight: 700;

    text-align: right;

    max-width: 65%;

    word-break: break-word;
}


/* =================================
   DATA IDENTITAS - WARNA SERAGAM
================================= */

.info-pill {
    min-height: 39px;
    padding: 7px 14px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-radius: 22px;

    background: #e7f0fa;
    border: 2px solid #91b8e4;

    box-sizing: border-box;
}


/* LABEL */
.info-pill span {
    color: #286da5;

    font-size: 13px;
    font-weight: 600;
}


/* NILAI */
.info-pill strong {
    color: #173f6b;

    font-size: 13px;
    font-weight: 700;

    text-align: right;

    max-width: 65%;

    word-break: break-word;
}

/* =================================
   RESPONSIVE HP
================================= */

@media (max-width: 600px) {

    .data-santri-card {
        padding: 25px 18px 22px;
        border-radius: 25px;
    }

    .data-santri-card .foto-santri {
        margin-bottom: 11px;
    }

    .data-santri-card .foto-santri img {
        width: 160px;
        height: 160px;
    }

    .profile-name {
        margin-bottom: 19px;
    }

    .profile-name span {
        font-size: 13px;
    }

    .profile-name h2 {
        font-size: 21px;
    }

    .profile-name p {
        font-size: 12px;
    }

    .profile-info {
        gap: 9px;
    }

    .info-pill {
        min-height: 38px;
        padding: 6px 13px;
        border-radius: 21px;
    }

    .info-pill span,
    .info-pill strong {
        font-size: 12px;
    }

}