/* FeastFlow — Profile Avatar Upload Component */
.profile-avatar-wrapper {
    position: relative;
    width: 4.75rem;
    height: 4.75rem;
    flex-shrink: 0;
}

.profile-avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary-grad, linear-gradient(135deg, #6366f1 0%, #4338ca 100%));
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--theme-surface, #ffffff);
}

.profile-avatar-preview img,
.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    background: var(--theme-primary, #6366f1);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    border: 2px solid var(--theme-surface, #ffffff);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
    margin: 0;
}

.profile-avatar-badge:hover {
    transform: scale(1.1);
    background: var(--theme-primary-hover, #4f46e5);
}

.profile-avatar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-avatar-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--theme-border, #cbd5e1);
    background: var(--theme-surface, #ffffff);
    color: var(--theme-text, #334155);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-avatar-btn-upload:hover {
    border-color: var(--theme-primary, #6366f1);
    color: var(--theme-primary, #6366f1);
    background: rgba(var(--theme-primary-rgb, 99, 102, 241), 0.08);
}

.profile-avatar-btn-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #fecaca;
    background: var(--theme-surface, #ffffff);
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-avatar-btn-remove:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.profile-avatar-hint {
    font-size: 0.75rem;
    color: var(--theme-text-muted, #64748b);
}

.profile-avatar-pending-notice {
    font-size: 0.75rem;
    font-weight: 600;
}

/* User avatar sizing in tables and headers */
.user-avatar-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
}

.user-show-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.admin-header-avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50% !important;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-header-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.customer-nav-avatar-img,
.customer-nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-circle img,
.avatar-circle-img,
.vendor-header-avatar img,
.vendor-profile-card-avatar img,
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.driver-avatar-sm {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 50%;
}

.driver-violet-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.waiter-avatar-img,
.waiter-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.kitchen-avatar-img,
.kitchen-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
