.sd-container {
    display: flex;
    min-height: 100vh;
    font-family: sans-serif;
}

.sd-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e90, #1f2e70);
    color: white;
    padding: 20px;
    border-radius: 20px;
    transition: 0.3s;
}

/* MENU */
.sd-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 8px 0;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #cfd6ff;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.2s;
}

.sd-menu:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.sd-menu.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
}

/* Content */
.sd-content {
    flex: 1;
    padding: 30px;
    background: #f5f6fa;
    margin-left: 20px;
    border-radius: 15px;
}

.sd-section {
    display: none;
}

.sd-section.active {
    display: block;
}

/* CARD */
.profil-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* TOP SECTION */
.profil-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap; /* 🔥 ini penting */
}

/* AVATAR */
.avatar {
    width: 60px;
    height: 60px;
    min-width: 60px; /* 🔥 biar tidak gepeng */
    border-radius: 50%;
}

/* INFO */
.profil-info h2 {
    margin: 0;
}

.profil-info p {
    margin: 5px 0 0;
    color: #777;
}

/* BUTTON */
.btn-edit {
    margin-left: auto;
    background: #2c3e90;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
}

/* MOBILE FIX */
@media (max-width: 768px) {
    .btn-edit {
        width: 100%;
        margin-top: 10px;
    }
}

/* GRID */
.profil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.profil-box {
    background: #f3f5f9;
    padding: 15px;
    border-radius: 12px;
}

.profil-box span {
    display: block;
    font-size: 13px;
    color: #666;
}

.profil-box strong {
    display: block;
    margin-top: 5px;
}

.profil-box.full {
    grid-column: span 2;
}

@media (max-width: 768px) {

    .sd-container {
        flex-direction: column;
    }

    .sd-sidebar {
        width: 100%;
        border-radius: 0;
    }

    .sd-content {
        margin-left: 0;
        margin-top: 10px;
    }

    .profil-grid {
        grid-template-columns: 1fr;
    }

    .profil-box.full {
        grid-column: span 1;
    }

}

/* HEADER MOBILE */
.sd-header {
    display: none;
    background: #2c3e90;
    color: #fff;
    padding: 15px;
    align-items: center;
    justify-content: space-between;
}

.sd-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* MOBILE MODE */
@media (max-width: 768px) {

    .sd-header {
        display: flex;
    }

    .sd-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        z-index: 999;
        transition: 0.3s;
    }

    .sd-sidebar.active {
        left: 0;
    }

}

.sd-content {
    flex: 1;
    padding: 30px;
    background: #f4f6fb;
    margin-left: 20px;
    border-radius: 20px;
}

.sd-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.sd-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sd-overlay {
    display: none;
}

@media (max-width: 768px) {

    .sd-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s;
    }

    .sd-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

}

@media (max-width: 768px) {

    .profil-card {
        padding: 20px;
    }

    .profil-info h2 {
        font-size: 20px;
    }

    .profil-info p {
        font-size: 14px;
    }

}