/* User Information Styles */

:root {
  --primary-rgb: 216, 107, 107;
}

/* Layout chung */
/* Sidebar styles */
.user-sidebar {
  position: sticky;
  top: 100px;
}

.user-header {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.user-avatar-wrapper {
  width: 60px;
  height: 60px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e5e5e5;
}

.user-avatar-icon {
  font-size: 1.5rem;
  color: #777;
}

.user-info-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  font-size: 16px;
}

.user-info-email {
  font-size: 14px;
  color: #666;
}

.user-nav-item {
  margin-bottom: 4px;
}

.user-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: #666;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 14px;
}

.user-nav-link:hover {
    background-color: var(--primary-color-2);
    color: var(--primary-color-1) !important;

}

.user-nav-link.active {
  background-color: var(--primary-color-2);
  color: var(--primary-color-1) !important;
}

.user-nav-icon {
  font-size: 16px;
  width: 20px;
  margin-right: 12px;
}

.user-nav-text {
  flex: 1;
}

.user-nav-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e5e5;
}

/* Content Area */
.user-content {
  overflow: hidden;
}

.content-title {
  font-weight: 600;
  font-size: 20px;
  color: #333;
  margin-bottom: 0;
}

.content-desc {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 0;
}

.content-body {
  padding: 24px;
}

/* Wishlist specific styles */
.wishlist-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.wishlist-item:last-child {
  border-bottom: none;
}

.product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 16px;
}

.product-info {
  flex: 1;
}

.product-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
  font-size: 14px;
}

.product-date {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.remove-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
}

.remove-link:hover {
  color: #e74c3c;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}

.product-price {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.btn-add-cart {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  background-color: #555;
  color: white;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
}

.empty-icon {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 16px;
}

.empty-text {
  color: #666;
  margin-bottom: 0;
}

/* Avatar Section */

.profile-avatar-edit {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e5e5;
    transition: all 0.3s ease;
}

.profile-avatar-edit:hover .profile-avatar {
    opacity: 0.8;
}

.avatar-initials {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.avatar-edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

/* Form Styles */

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}



.form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* Password Section */
.password-section {
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.section-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 24px;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #e5e5e5;
    padding: 16px 24px;
}

/* Loading States */
.btn-spinner {
    display: inline-flex;
    align-items: center;
}

/* Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 4px;
    font-size: 12px;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 991px) {
  .user-sidebar {
    position: static;
    margin-bottom: 20px;
  }
  
  .user-header {
    padding: 16px;
  }
  
  .content-header {
    padding: 16px 20px;
  }
  
  .content-body {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  
  .wishlist-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
    border-bottom: none;
  }
  
  .product-image {
    margin-right: 0;
    margin-bottom: 12px;
  }
  
  .product-info {
    width: 100%;
    margin-bottom: 12px;
  }
  
  .product-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .btn-add-cart {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
    
    .modal-body {
        padding: 16px;
    }
    
    .avatar-section {
        text-align: center;
    }
    
    .avatar-section .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatar-section .ms-3 {
        margin-left: 0 !important;
        margin-top: 16px;
    }
}