@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f5f8f6;
    color: #333;
}


/* =========================================
   CONTAINER
========================================= */

.profil-admin-container {
    width: 90%;
    max-width: 900px;
    margin: 28px auto 40px;
}


/* =========================================
   HEADER
========================================= */

.profil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.profil-header h1 {
    margin: 0 0 4px;
    color: #123c2d;
    font-size: 23px;
}

.profil-header p {
    margin: 0;
    color: #718078;
    font-size: 11px;
}


/* =========================================
   TOMBOL KEMBALI
========================================= */

.btn-kembali {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 12px;

    background: #e8f5ec;
    color: #087443;

    border-radius: 7px;
    text-decoration: none;

    font-size: 10px;
    font-weight: 600;

    transition: 0.2s;
}

.btn-kembali:hover {
    background: #087443;
    color: #fff;
}


/* =========================================
   CARD PROFIL
========================================= */

.profil-card {
    background: #fff;

    border-radius: 13px;

    padding: 20px;

    border: 1px solid #e3eee8;

    box-shadow:
        0 5px 18px rgba(25, 60, 45, 0.07);

    margin-bottom: 18px;
}


/* =========================================
   BAGIAN ATAS
========================================= */

.profil-top {
    display: flex;
    align-items: center;

    gap: 15px;

    padding-bottom: 17px;

    border-bottom: 1px solid #e8eee9;
}


/* =========================================
   FOTO
========================================= */

.foto-wrapper {
    width: 72px;
    height: 72px;

    flex-shrink: 0;
}

.foto-wrapper img,
.foto-default {
    width: 72px;
    height: 72px;

    border-radius: 50%;
}

.foto-wrapper img {
    object-fit: cover;

    border: 3px solid #e8f5ec;
}

.foto-default {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #e8f5ec;

    color: #087443;

    font-size: 27px;

    border: 3px solid #d9eee2;
}


/* =========================================
   NAMA
========================================= */

.profil-nama {
    flex: 1;
}

.profil-nama h2 {
    margin: 0 0 7px;

    color: #123c2d;

    font-size: 18px;
}

.badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding: 5px 8px;

    background: #e8f5ec;

    color: #087443;

    border-radius: 5px;

    font-size: 9px;

    font-weight: 600;
}


/* =========================================
   TOMBOL EDIT
========================================= */

.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 8px 11px;

    background: #ffd54f;

    color: #123c2d;

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    transition: 0.2s;
}

.btn-edit:hover {
    background: #087443;
    color: #fff;
}


/* =========================================
   JUDUL BIODATA
========================================= */

.biodata-title {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 18px 0 12px;

    color: #123c2d;

    font-size: 13px;

    font-weight: 700;
}

.biodata-title i {
    color: #087443;
}


/* =========================================
   GRID BIODATA
========================================= */

.biodata-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


/* =========================================
   ITEM BIODATA
========================================= */

.biodata-item {
    background: #f5f8f6;

    border-radius: 7px;

    padding: 10px 12px;

    min-height: 53px;
}

.biodata-item span {
    display: block;

    margin-bottom: 4px;

    color: #718078;

    font-size: 9px;
}

.biodata-item strong {
    display: block;

    color: #123c2d;

    font-size: 11px;

    font-weight: 600;

    word-break: break-word;
}


/* ALAMAT FULL */

.biodata-full {
    grid-column: 1 / -1;
}


/* =========================================
   STATUS
========================================= */

.status-aktif {
    color: #087443 !important;

    display: flex !important;
    align-items: center;

    gap: 5px;
}

.status-aktif i {
    font-size: 6px;
}


/* =========================================
   INFORMASI
========================================= */

.info-admin {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    margin-top: 17px;

    padding: 11px 13px;

    background: #fff9df;

    border-left: 3px solid #ffd54f;

    border-radius: 6px;
}

.info-admin i {
    color: #087443;

    font-size: 12px;

    margin-top: 2px;
}

.info-admin p {
    margin: 0;

    color: #6d6750;

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================
   DATA KOSONG
========================================= */

.data-kosong {
    background: #fff;

    text-align: center;

    padding: 40px 20px;

    border-radius: 12px;

    box-shadow: 0 5px 18px rgba(25, 60, 45, 0.07);
}

.data-kosong i {
    font-size: 30px;

    color: #087443;

    margin-bottom: 10px;
}

.data-kosong h3 {
    margin: 0 0 5px;

    color: #123c2d;

    font-size: 16px;
}

.data-kosong p {
    margin: 0;

    color: #718078;

    font-size: 10px;
}

/* =========================================
   FORM EDIT PROFIL
========================================= */

.form-admin {
    background: #fff;

    padding: 20px;

    border-radius: 13px;

    border: 1px solid #e3eee8;

    box-shadow: 0 5px 18px rgba(25, 60, 45, 0.07);
}


/* FOTO FORM */

.form-foto {
    display: flex;
    align-items: center;

    gap: 15px;

    padding-bottom: 17px;

    margin-bottom: 17px;

    border-bottom: 1px solid #e8eee9;
}

.preview-foto,
.preview-foto img,
.preview-foto .foto-default {
    width: 75px;
    height: 75px;

    border-radius: 50%;
}

.preview-foto img {
    object-fit: cover;

    border: 3px solid #e8f5ec;
}

.preview-foto .foto-default {
    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8f5ec;

    color: #087443;

    font-size: 27px;
}


/* LABEL */

.label-form {
    display: block;

    color: #123c2d;

    font-size: 11px;

    font-weight: 600;

    margin-bottom: 6px;
}

.form-foto input[type="file"] {
    width: 100%;

    font-size: 10px;

    color: #718078;
}

.form-foto small {
    display: block;

    margin-top: 4px;

    color: #8a9791;

    font-size: 9px;
}


/* GRID FORM */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


/* GROUP */

.form-group {
    display: flex;

    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;

    color: #123c2d;

    font-size: 10px;

    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 9px 10px;

    border: 1px solid #dce8e1;

    border-radius: 7px;

    background: #fff;

    color: #333;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    outline: none;

    transition: 0.2s;
}

.form-group textarea {
    resize: vertical;

    min-height: 75px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #087443;

    box-shadow: 0 0 0 2px rgba(8, 116, 67, 0.08);
}

.form-group input:disabled {
    background: #f2f5f3;

    color: #7b8c85;

    cursor: not-allowed;
}

.form-group small {
    margin-top: 4px;

    color: #8a9791;

    font-size: 8px;
}


/* FULL WIDTH */

.form-full {
    grid-column: 1 / -1;
}


/* =========================================
   FORM ACTION
========================================= */

.form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 8px;

    margin-top: 18px;

    padding-top: 15px;

    border-top: 1px solid #e8eee9;
}


/* BATAL */

.btn-batal {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 13px;

    background: #f1f4f2;

    color: #718078;

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 600;
}

.btn-batal:hover {
    background: #e5ebe7;

    color: #123c2d;
}


/* SIMPAN */

.btn-simpan {
    border: none;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 13px;

    background: #087443;

    color: #fff;

    border-radius: 7px;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.btn-simpan:hover {
    background: #123c2d;
}


/* =========================================
   RESPONSIVE FORM
========================================= */

@media (max-width: 600px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-full {
        grid-column: auto;
    }

    .form-admin {
        padding: 14px;
    }

    .form-foto {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-batal,
    .btn-simpan {
        width: 100%;
    }

}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .profil-admin-container {
        width: 94%;
    }

    .profil-header {
        align-items: flex-start;
        gap: 10px;
    }

    .profil-header h1 {
        font-size: 20px;
    }

    .profil-top {
        flex-wrap: wrap;
    }

    .btn-edit {
        margin-left: auto;
    }

    .biodata-grid {
        grid-template-columns: 1fr;
    }

    .biodata-full {
        grid-column: auto;
    }

}


@media (max-width: 450px) {

    .profil-card {
        padding: 14px;
    }

    .profil-top {
        gap: 10px;
    }

    .foto-wrapper,
    .foto-wrapper img,
    .foto-default {
        width: 60px;
        height: 60px;
    }

    .foto-default {
        font-size: 22px;
    }

    .profil-nama h2 {
        font-size: 15px;
    }

    .btn-edit {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }

}