/* =====================================================
   PREMIUM LIGHTWEIGHT DASHBOARD
   Clean, Fast, Professional Design
   ===================================================== */

/* Dashboard Container */
.dashboard-lite {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: #fafbfc;
  min-height: 100vh;
}

/* Professional Header */
.dashboard-header {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.brand-info h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.brand-info p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.user-info {
  text-align: right;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px 0;
}

.user-role {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

/* Quick Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.summary-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.summary-card.sales::before {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.summary-card.transactions::before {
  background: linear-gradient(90deg, #0891b2, #06b6d4);
}

.summary-card.alerts::before {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.summary-card.products::before {
  background: linear-gradient(90deg, #7c3aed, #8b5cf6);
}

.summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: white;
}

.summary-card.sales .summary-icon {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.summary-card.transactions .summary-icon {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
}

.summary-card.alerts .summary-icon {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

.summary-card.products .summary-icon {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.summary-value {
  font-size: 32px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 8px 0;
  line-height: 1;
}

.summary-label {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 4px 0;
}

.summary-change {
  font-size: 12px;
  color: #16a34a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-change.negative {
  color: #dc2626;
}

/* Quick Actions */
.quick-actions {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.06);
  margin-bottom: 32px;
}

.quick-actions h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 180px;
}

.action-btn:hover {
  border-color: #16a34a;
  color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.action-btn.primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  border-color: transparent;
}

.action-btn.primary:hover {
  background: linear-gradient(135deg, #15803d, #16a34a);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  height: 120px;
  margin-bottom: 20px;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text.large {
  height: 32px;
  width: 60%;
}

.skeleton-text.small {
  height: 12px;
  width: 40%;
}

/* Activity Feed */
.activity-feed {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.06);
}

.activity-feed h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 20px 0;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #16a34a;
  transition: transform 0.2s ease;
}

.activity-item:hover {
  transform: translateX(4px);
}

.activity-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 14px;
  color: #374151;
  margin: 0 0 4px 0;
}

.activity-time {
  font-size: 12px;
  color: #9ca3af;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-lite {
    padding: 16px;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .header-user {
    flex-direction: column;
    gap: 8px;
  }
  
  .user-info {
    text-align: center;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Performance Optimizations */
.summary-card,
.action-btn,
.activity-item {
  will-change: transform;
}

/* Focus States */
.action-btn:focus,
.summary-card:focus {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .dashboard-lite {
    background: white;
  }
  
  .action-btn {
    display: none;
  }
}
