/* ==========================================================================
   CSS KHUSUS HALAMAN PROFIL PENGGUNA (USER PROFILE)
   ========================================================================== */

.user-hero {
    background: linear-gradient(to bottom, rgba(13, 92, 58, 0.541), rgba(8, 59, 37, 0.849)),
                url('../../berkas/fix.jpeg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
    padding: 4.5rem 1rem;
}

.user-hero h1 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.user-hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

.user-main-container {
    padding: 3.5rem 1rem;
}

/* Card Wrapper Utama */
.user-card-wrapper {
    background: #ffffff;
    border: 1px solid rgba(13, 92, 58, 0.12);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    max-width: 900px;
    margin: 0 auto;
}

.hidden-mode {
    display: none !important;
}

/* Header Profil Read-Only */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #E2E8F0;
    margin-bottom: 2rem;
}

.avatar-container {
    text-align: center;
}

.avatar-container img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0D5C3A;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.status-badge {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0D5C3A;
    background: #EAF4F0;
    padding: 4px 10px;
    border-radius: 20px;
}

.user-headline h2 {
    color: #0D5C3A;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.user-meta {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn-primary-sqt {
    background: #0D5C3A;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-sqt:hover {
    background: #D95D39;
}

.btn-outline-sqt {
    background: transparent;
    color: #D95D39;
    border: 1px solid #D95D39;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary-sqt {
    background: #94A3B8;
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Detail Box Read-Only Grid */
.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.detail-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem;
}

.detail-box h3 {
    color: #0D5C3A;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0D5C3A;
    padding-bottom: 0.5rem;
}

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.78rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
}

.detail-item .value {
    font-size: 0.95rem;
    color: #1E293B;
    font-weight: 600;
}

.highlight-val {
    color: #D95D39 !important;
}

.text-success {
    color: #0D5C3A !important;
}

/* Form Edit Mode */
.edit-header-box h2 {
    color: #0D5C3A;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.edit-header-box p {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-section-title h3 {
    color: #D95D39;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #E2E8F0;
    padding-bottom: 0.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    color: #334155;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.65rem 0.85rem;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1E293B;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0D5C3A;
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 1.8rem;
}
/* Styling Logo di Navbar Header */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* Jarak antara gambar logo dan teks */
}
.nav-logo {
    height: 45px; /* Tinggi logo di navbar */
    width: auto;
}
.logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0D5C3A;
    font-family: 'Cinzel', serif;
}
.logo span i {
    color: #D95D39;
    font-style: normal;
}
/* ==========================================================================
   PENYESUAIAN MOBILE (HP)
   ========================================================================== */
@media (max-width: 750px) {
    .user-hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }

    .user-hero p {
        font-size: 0.88rem !important;
    }

    .user-card-wrapper {
        padding: 1.25rem;
    }

    .user-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .user-headline h2 {
        font-size: 1.4rem !important;
    }

    .user-meta {
        font-size: 0.82rem !important;
    }

    .user-actions {
        justify-content: center;
    }

    .detail-box h3,
    .edit-header-box h2 {
        font-size: 1.2rem !important;
    }

    .detail-item .value {
        font-size: 0.88rem !important;
    }
    .nav-logo {
        height: 35px;
    }

    .logo span {
        font-size: 1.1rem;
    }
}
/* ==========================================================================
   PERBAIKAN KONTEN & GRID AGAR TIDAK TERPOTONG DI MOBILE
   ========================================================================== */

/* 1. Mencegah kontainer utama dan wrapper meluap secara tak sengaja */
.user-main-container,
.user-card-wrapper {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Menjaga agar elemen di dalamnya tidak terpotong keluar */
}

/* 2. Mengubah minmax grid agar pas di layar kecil (< 360px) */
.user-details-grid {
    display: grid;
    /* Ganti 320px menjadi 100% / minmax yang lebih fleksibel */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* 3. Menyesuaikan padding detail-box agar konten di dalamnya aman */
.detail-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem;
    word-wrap: break-word; /* Memutus teks panjang jika ada */
    box-sizing: border-box;
}
/* ==========================================================================
   ANIMASI SCROLL REVEAL (HALAMAN USER PROFILE)
   ========================================================================== */
.user-profile-header,
.detail-box,
.edit-header-box,
.form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.user-profile-header.reveal-active,
.detail-box.reveal-active,
.edit-header-box.reveal-active,
.form-group.reveal-active {
    opacity: 1;
    transform: translateY(0);
}
/* 4. Khusus Tampilan Mobile (HP) */
@media (max-width: 750px) {
    .user-main-container {
        padding: 1.5rem 0.5rem; /* Kurangi padding samping luar */
    }

    .user-card-wrapper {
        padding: 1rem; /* Kurangi padding dalam wrapper */
        border-radius: 12px;
    }

    .user-details-grid {
        grid-template-columns: 1fr; /* Paksa 1 kolom di HP */
        gap: 1rem;
    }

    .detail-box {
        padding: 1rem; /* Padding lebih kecil di mobile */
    }

    .detail-box h3 {
        font-size: 1.05rem !important;
        margin-bottom: 0.8rem;
    }

    /* Memastikan tombol di header profil juga teratur rapi */
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .user-actions button, 
    .user-actions a {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}