.profil-pimpinan {
    background: #f8f9fa;
}

.pp-card {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.pp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border-color: #4b5563;
}

.pp-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #111827;
}

.pp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.05);
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.pp-card:hover .pp-photo img {
    transform: scale(1.1);
    opacity: 1;
}

.pp-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(17, 24, 39, 0) 50%,
        rgba(17, 24, 39, 0.9) 100%
    );
}

.pp-body {
    padding: 1.25rem;
    position: relative;
    margin-top: -60px;
    z-index: 2;
}

.pp-name {
    font-weight: 700;
}

.pp-role {
    font-weight: 500;
    color: #d1d5db;
}

.text-white-75 {
    color: #d1d5db !important;
}

.badge-accent {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline-light:hover {
    color: #111827;
    background: #ffffff;
}

@media (max-width: 575.98px) {
    .btn-outline-light {
        width: 100%;
    }
}

/* ---- Modal ---- */
.pp-modal .modal-dialog {
    max-width: 980px;
}

/* wide but not too wide */
.pp-modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.pp-modal .modal-body {
    padding: 0;
}

/* LEFT image panel */
.modal-photo-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    /* mobile minimum */
    max-height: 80vh;
    /* keep within viewport */
    overflow: hidden;
    background: #111827;
}

@media (min-width: 992px) {
    .modal-photo-panel {
        min-height: 580px;
        max-height: none;
    }
}

.modal-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* fill the panel */
    object-position: top center;
}

.modal-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.35) 100%
    );
    pointer-events: none;
}

.modal-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.caption-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: #111827;
}

/* RIGHT panel */
.modal-form-panel {
    position: relative;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: auto;
}

@media (min-width: 576px) {
    .modal-form-panel {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    .modal-form-panel {
        padding: 2.5rem;
    }
}

.modal-form-panel .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

@media (min-width: 576px) {
    .modal-form-panel .btn-close {
        top: 1.25rem;
        right: 1.25rem;
    }
}

@media (min-width: 992px) {
    .modal-form-panel .btn-close {
        top: 1.5rem;
        right: 1.5rem;
    }
}

.modal-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dee2e6;
}

@media (min-width: 576px) {
    .modal-profile-pic {
        width: 70px;
        height: 70px;
    }
}

.pp-modal .nav-pills .nav-link {
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: 0.2s;
}

.pp-modal .nav-pills .nav-link:hover {
    background-color: #f1f1f1;
}

.pp-modal .nav-pills .nav-link.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
