/* Dashboard Profile Styles */
.dashboard-profile {
  padding: 24px;
  padding-top: 120px;
  width: 100%;
  padding-right: 24px;
}

@media (min-width: 768px) {
  .dashboard-profile {
    padding-top: 87px;
    padding-right: 0;
  }
}

/* User Info Section */
.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Stats Section */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stats > a {
  background-color: #FFF5CC;
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.stats > a:hover {
  background-color: #FFD302;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.btn-primary {
  background-color: #FFD302;
  color: #1A1A1A;
}

.btn-primary:hover {
  background-color: #E6BE02;
  transform: translateY(-1px);
}

.btn-default {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #dee2e6;
}

.btn-default:hover {
  background-color: #e9ecef;
  color: #495057;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.5rem;
  }
}

/* Recent Orders and Wishlist Cards */
.recent-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.recent-item:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

.recent-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.375rem;
}

.recent-item-info {
  flex: 1;
}

.recent-item-title {
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.25rem;
}

.recent-item-price {
  color: #FFD302;
  font-weight: 700;
}

.recent-item-date {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Mobile optimizations */
@media (max-width: 767px) {
  .recent-item {
    flex-direction: column;
    text-align: center;
  }
  
  .recent-item img {
    width: 80px;
    height: 80px;
  }
}

/* Utility classes for better spacing */
.transition-colors {
  transition: color 0.3s ease;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-4 {
  gap: 1rem;
}

.gap-2 {
  gap: 0.5rem;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #FFD302;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.btn:focus,
.stats > a:focus {
  outline: 2px solid #FFD302;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .stats > a {
    border: 2px solid #000;
  }
  
  .btn {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .stats > a,
  .recent-item,
  .transition-colors {
    transition: none;
  }
  
  .loading::after {
    animation: none;
  }
}
