.dashboard-page {
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* ✅ ADD THIS: Ensure cart icon is visible on dashboard */
.dashboard-page .cart-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
  position: relative;
}

.dashboard-page .cart-link i {
  font-size: 18px;
}

.dashboard-page .cart-count {
  background: #e74c3c !important;
  color: white !important;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-left: 4px;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dashboard-main {
  padding-top: calc(var(--nav-height) + 20px);
  padding-bottom: 40px;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, var(--button-green), var(--button-green-hover));
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.welcome-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.welcome-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.quick-actions {
  display: flex;
  gap: 15px;
}

.action-btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.action-btn.primary {
  background-color: white;
  color: var(--button-green);
}

.action-btn.secondary {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--button-green), var(--button-green-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.stat-content p {
  color: #666;
  font-weight: 500;
}

/* Recent Orders */
.recent-orders {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
}

.view-all {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.orders-table {
  overflow-x: auto;
}

.orders-table table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.orders-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: var(--dark);
}

.no-orders {
  text-align: center;
  color: #666;
  font-style: italic;
}

/* Quick Links */
.quick-links {
  margin-bottom: 40px;
}

.quick-links h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.link-card i {
  font-size: 2rem;
  color: var(--button-green);
  margin-bottom: 15px;
}

.link-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.link-card p {
  color: #666;
  line-height: 1.5;
}























































































/* Ensure user menu is visible when logged in */
.dashboard-page .user-menu[style*="flex"] {
  display: flex !important;
}

/* Disable dropdown on dashboard page only */
.dashboard-page .user-nav-dropdown {
  display: none !important;
}

.dashboard-page .user-nav-button {
  pointer-events: none !important;
  cursor: default !important;
}

.dashboard-page .user-nav-button .fa-chevron-down {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .welcome-content h1 {
    font-size: 2rem;
  }
  
  .quick-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .action-btn {
    justify-content: center;
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
}