/* ============================================
   USER DASHBOARD ENHANCED DESIGN
   Professional, modern design for dashboard pages
   ============================================ */

/* Dashboard Content Area */
.dashboard__content {
  padding: 30px;
  background: #f8f9fa;
  min-height: 100vh;
}

/* Dashboard Title Area */
.dashboard_title_area {
  margin-bottom: 25px;
}

.dashboard_title_area h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.dashboard_title_area h4 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0;
}

.dashboard_title_area p.text {
  color: #6c757d;
  font-size: 15px;
  margin: 0;
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.dashboard-stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #5D5FEF 0%, #8B5CF6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #5D5FEF;
}

.dashboard-stat-card:hover::before {
  opacity: 1;
}

.dashboard-stat-card .icon {
  font-size: 36px;
  color: #5D5FEF;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(93, 95, 239, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 10px;
  width: 60px;
  height: 60px;
  transition: all 0.3s ease;
}

.dashboard-stat-card:hover .icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(93, 95, 239, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
}

.dashboard-stat-card .details {
  flex: 1;
}

.dashboard-stat-card .details .title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 6px;
}

.dashboard-stat-card .details .number {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 30px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #2c3e50;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 15px;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.table tbody td {
  padding: 16px 15px;
  vertical-align: middle;
  color: #495057;
  font-size: 14px;
  border-bottom: 1px solid #f1f3f5;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
  transform: scale(1.001);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Badges */
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.badge.bg-info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-thm {
  background: linear-gradient(135deg, #D8A88A 0%, #D8A88A 100%);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
}

.btn-thm:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(93, 95, 239, 0.4);
  color: white;
}

.btn-outline-primary {
  border: 2px solid #5D5FEF;
  color: #5D5FEF;
  background: transparent;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #5D5FEF 0%, #8B5CF6 100%);
  color: white;
  border-color: #5D5FEF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ============================================
   QUICK ACTION CARDS
   ============================================ */
.dashboard-action-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-bottom: 20px;
}

.dashboard-action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: #5D5FEF;
  text-decoration: none;
}

.dashboard-action-card i {
  font-size: 48px;
  color: #5D5FEF;
  margin-bottom: 15px;
  display: block;
  transition: all 0.3s ease;
}

.dashboard-action-card:hover i {
  transform: scale(1.1);
  color: #8B5CF6;
}

.dashboard-action-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.dashboard-action-card:hover h5 {
  color: #5D5FEF;
}

.dashboard-action-card p {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}

.empty-state i {
  display: block;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state h4,
.empty-state h5 {
  color: #6c757d;
  margin-bottom: 12px;
}

.empty-state p {
  color: #adb5bd;
  max-width: 400px;
  margin: 0 auto 25px;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-section {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
}

.settings-section h4 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f5;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus,
.form-select:focus {
  border-color: #5D5FEF;
  box-shadow: 0 0 0 3px rgba(93, 95, 239, 0.1);
  background: white;
}

.form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ============================================
   REVIEW CARDS
   ============================================ */
.review-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.review-card .product-info {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f5;
}

.review-card .product-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e9ecef;
}

.review-card .rating {
  color: #f59e0b;
  font-size: 18px;
  margin-bottom: 8px;
}

.review-card .review-text {
  color: #495057;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.review-card .review-date {
  font-size: 12px;
  color: #adb5bd;
}

/* ============================================
   DELIVERY CARDS
   ============================================ */
.delivery-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #5D5FEF;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.delivery-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.delivery-card .delivery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f3f5;
}

.delivery-card .delivery-id {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

/* ============================================
   PROFILE PICTURE UPLOAD
   ============================================ */
.profile-picture-container {
  text-align: center;
  margin-bottom: 30px;
}

.profile-picture-preview {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #5D5FEF;
  box-shadow: 0 4px 12px rgba(93, 95, 239, 0.3);
  margin-bottom: 20px;
}

.profile-upload-btn {
  display: inline-block;
  background: linear-gradient(135deg, #5D5FEF 0%, #8B5CF6 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.profile-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(93, 95, 239, 0.4);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991px) {
  .dashboard__content {
    padding: 20px 15px;
  }

  .dashboard_title_area h2 {
    font-size: 24px;
  }

  .dashboard-stat-card {
    padding: 20px 15px;
  }

  .dashboard-stat-card .icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
  }

  .dashboard-stat-card .details .number {
    font-size: 24px;
  }

  .settings-section {
    padding: 20px;
  }
}

@media (max-width: 575px) {
  .dashboard-stat-card {
    gap: 12px;
  }

  .dashboard-stat-card .icon {
    font-size: 28px;
    width: 45px;
    height: 45px;
  }

  .dashboard-stat-card .details .number {
    font-size: 22px;
  }

  .table thead th,
  .table tbody td {
    padding: 12px 10px;
    font-size: 13px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-stat-card,
.table-responsive,
.dashboard-action-card,
.settings-section,
.review-card,
.delivery-card {
  animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for cards */
.dashboard-stat-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-stat-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-stat-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-stat-card:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-border.text-primary {
  color: #5D5FEF !important;
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
.dashboard__content::-webkit-scrollbar {
  width: 8px;
}

.dashboard__content::-webkit-scrollbar-track {
  background: #f1f3f5;
}

.dashboard__content::-webkit-scrollbar-thumb {
  background: #5D5FEF;
  border-radius: 4px;
}

.dashboard__content::-webkit-scrollbar-thumb:hover {
  background: #8B5CF6;
}

/* ============================================
   ORDER DETAIL MODAL IMPROVEMENTS
   ============================================ */
.modal-dialog {
  max-width: 900px;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: linear-gradient(135deg, #5D5FEF 0%, #8B5CF6 100%);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 20px 25px;
}

.modal-header .modal-title {
  font-weight: 700;
  font-size: 20px;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  padding: 20px 30px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}
