/* User Dashboard Page - Theme: Teal/Blue Gradient */
:root {
  --dash-primary: #14b8a6;
  --dash-secondary: #3b82f6;
  --dash-accent: #f59e0b;
  --dash-bg: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 50%, #f8fafc 100%);
}

.dash-body {
  background: var(--dash-bg);
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

.dash-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.dash-sidebar {
  background: linear-gradient(180deg, #0e2533 0%, #1e3a5a 100%);
  color: #e2e8f0;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.dash-brand h3 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.dash-brand p {
  color: var(--dash-primary);
  margin: 4px 0 0;
  font-size: 0.8rem;
}

.dash-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash-menu li {
  margin-bottom: 8px;
}

.dash-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dash-menu a:hover,
.dash-menu a.active {
  background: rgba(20, 184, 166, 0.15);
  color: var(--dash-primary);
}

.dash-menu a i {
  width: 24px;
  font-size: 1.1rem;
}

.dash-menu a span.badge {
  margin-left: auto;
  background: var(--dash-accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.dash-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-btn-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #ef4444;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dash-btn-logout:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dash-user-profile {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-align: center;
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 3px solid var(--dash-primary);
}

.dash-user-name {
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.dash-user-role {
  color: var(--dash-primary);
  font-size: 0.8rem;
}

/* Main Content */
.dash-content {
  background: #fff;
}

.dash-topbar {
  background: #fff;
  padding: 16px 32px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.dash-topbar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.dash-topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.dash-notifications {
  position: relative;
}

.dash-notifications .fa-bell {
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dash-notifications .fa-bell:hover {
  color: var(--dash-primary);
}

.dash-notif-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--dash-accent);
  border-radius: 50%;
}

.dash-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.dash-avatar-md {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.dash-user-info strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.dash-user-info span {
  color: #64748b;
  font-size: 0.8rem;
}

.dash-main {
  padding: 32px;
}

.dash-header {
  margin-bottom: 32px;
}

.dash-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.dash-welcome-text {
  color: #64748b;
  font-size: 1rem;
}

/* Stats Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.dash-stat-card {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dash-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.1);
}

.dash-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.dash-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.dash-stat-icon.green { background: #dcfce7; color: #16a34a; }
.dash-stat-icon.orange { background: #ffedd5; color: #ea580c; }
.dash-stat-icon.teal { background: #ccfbf1; color: #0f766e; }

.dash-stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.dash-stat-content p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.dash-stat-trend {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-stat-trend.up { color: #16a34a; }
.dash-stat-trend.down { color: #ef4444; }

/* Quick Actions */
.dash-actions {
  margin-bottom: 32px;
}

.dash-actions h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px 0;
}

.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.dash-action-card {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #e2e8f0;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dash-action-card:hover {
  border-color: var(--dash-primary);
  background: #f0fdf4;
  transform: translateY(-4px);
}

.dash-action-card i {
  font-size: 2.5rem;
  color: var(--dash-primary);
  margin-bottom: 16px;
}

.dash-action-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.dash-action-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

/* Recent Activity */
.dash-activity {
  margin-bottom: 32px;
}

.dash-activity h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px 0;
}

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

.dash-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.dash-activity-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dash-activity-icon {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.dash-activity-icon.teal { background: #ccfbf1; color: #0f766e; }
.dash-activity-icon.blue { background: #dbeafe; color: #2563eb; }
.dash-activity-icon.pink { background: #fce7f3; color: #db2777; }

.dash-activity-content {
  flex: 1;
}

.dash-activity-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.dash-activity-content p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.dash-activity-time {
  color: #94a3b8;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .dash-wrapper {
    grid-template-columns: 1fr;
  }
  
  .dash-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .dash-main {
    padding: 24px 16px;
  }
  
  .dash-header h2 {
    font-size: 1.4rem;
  }
  
  .dash-stats {
    grid-template-columns: 1fr;
  }
  
  .dash-action-card {
    padding: 20px;
  }
}
