:root {
    --bg-main: #0a0a0a;
    --bg-panel: rgba(20, 20, 20, 0.85);
    --text-color: #ffffff;
    --text-muted: #9ca3af;
    --input-bg: #1f1f1f;
    --border-color: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.12);
    --label-color: #9ca3af;
}

[data-theme="light"] {
    --bg-main: #f4f6f9;
    --bg-panel: rgba(255, 255, 255, 0.9);
    --text-color: #111827;
    --text-muted: #6b7280;
    --input-bg: #f9fafb;
    --border-color: rgba(0, 0, 0, 0.08);
    --input-border: rgba(0, 0, 0, 0.15);
    --label-color: #4b5563;
}

body {
    background: var(--bg-main);
    min-height: 100vh;
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
    background-image: radial-gradient(circle at 50% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.profile-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    min-height: calc(100vh - 80px);
}

.profile-box {
    width: 480px;
    max-width: 100%;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.logo {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: 0.5px;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 13px;
}

/* Fix: Container profil & avatar terkunci presisi */
.profile-pic-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.avatar-overlay-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    flex-shrink: 0;
}

#avatarWrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
    background: var(--input-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #06b6d4;
    box-sizing: border-box;
}

/* Fix: Icon kamera melayang di sudut kanan bawah avatar */
.upload-label-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #06b6d4;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background 0.2s;
    z-index: 10;
}

.upload-label-overlay:hover {
    background: #8b5cf6;
    transform: scale(1.1);
}

.info-group {
    margin-bottom: 16px;
}

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

.info-group label {
    display: block;
    color: var(--label-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-capitalize {
    text-transform: capitalize;
}

.info-value {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.info-value:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.readonly-input {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.03);
}

.role-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    color: #06b6d4;
    letter-spacing: 0.5px;
}

.action-btn {
    height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: white;
    transition: opacity 0.2s, transform 0.1s, background-color 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.action-btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.btn-secondary {
    background: #27272a;
    border: 1px solid var(--input-border);
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.action-btn:hover {
    opacity: 0.9;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    }
