/* ============================================
   PROFILE SIDEBAR NAVIGATION - FIXED ALIGNMENT
   ============================================ */

.profile-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.profile-avatar-wrapper {
    text-align: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.profile-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.profile-avatar img,
.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-card);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

.profile-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.profile-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
}

/* Profile Completion Widget */
.profile-completion {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-completion:hover {
    background: var(--bg-secondary);
}

.completion-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.completion-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.completion-label i {
    margin-right: 4px;
}

.completion-percent {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

.completion-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.completion-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Navigation - FIXED LEFT ALIGNMENT */
.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.profile-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-nav li a i:first-child {
    width: 20px;
    font-size: 1rem;
}

.profile-nav li a span {
    flex: 1;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-nav li a i:last-child {
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.profile-nav li:hover a {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.profile-nav li.active a {
    background: var(--primary-light);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.profile-nav li.active a i:last-child {
    opacity: 1;
}

/* Count badge for business tab */
.count-badge {
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.notification-badge-side {
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

/* Profile Layout */
.profile-layout {
    display: flex;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.profile-main {
    flex: 1;
    min-width: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .profile-layout {
        flex-direction: column;
    }
    
    .profile-sidebar {
        width: 100%;
        position: static;
    }
    
    .profile-nav ul {
        display: flex;
        flex-wrap: wrap;
    }
    
    .profile-nav li {
        flex: 1;
        border-bottom: none;
        border-right: 1px solid var(--border);
    }
    
    .profile-nav li:last-child {
        border-right: none;
    }
    
    .profile-nav li a {
        justify-content: center;
    }
    
    .profile-nav li a span {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .profile-sidebar {
        border-radius: 16px;
    }
    
    .profile-avatar-wrapper {
        padding: 1.5rem;
    }
    
    .profile-nav ul {
        flex-direction: column;
    }
    
    .profile-nav li {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .profile-nav li a {
        justify-content: flex-start;
    }
    
    .profile-nav li a span {
        text-align: left;
    }
}