/* Dashboard Specific Styles - Modern Redesign */

/* Stats Grid - Enhanced with Glassmorphism */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.3);
}

.stat-icon {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  position: relative;
}

.stat-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 20px;
  background: inherit;
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
}

.stat-card:hover .stat-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-icon.revenue {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.orders {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.shipping {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.alert {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-content {
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark), var(--gray-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-change i {
  font-size: 11px;
}

.stat-change.positive {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.stat-change.negative {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.stat-change.neutral {
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  color: var(--gray-600);
}

/* Charts Row - Enhanced */
.charts-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 36px;
}

.chart-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  animation: fadeIn 0.7s ease-out;
}

.chart-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.card-header h3 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chart-filter {
  padding: 8px 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.chart-filter:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  transform: translateY(-2px);
}

.chart-filter:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.chart-container {
  position: relative;
  height: 320px;
}

/* Bottom Row - Enhanced */
.bottom-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.data-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s ease-out;
}

.data-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.data-card .card-header {
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.data-card .card-header a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
}

.data-card .card-header a:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #ffffff;
  transform: translateX(4px);
}

/* Product List - Enhanced */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.product-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.product-item:hover .product-image {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-sales {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

.product-revenue {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--success-color), var(--success-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Order List - Enhanced */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item {
  padding: 18px;
  border: 2px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
}

.order-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.order-id {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.order-status {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.order-status.pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.order-status.shipping {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.order-status.completed {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.order-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}

.order-total {
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Notification List - Enhanced */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notification-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.notification-item:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.notification-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.notification-item:hover .notification-icon {
  transform: scale(1.15) rotate(10deg);
}

.notification-icon.order {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.notification-icon.stock {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
}

.notification-icon.review {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #d97706;
}

.notification-content {
  flex: 1;
}

.notification-text {
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.notification-time {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .charts-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .bottom-row {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 20px;
  }
  
  .stat-icon {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  
  .stat-value {
    font-size: 26px;
  }
}
