.user-dashboard {
  display: flex;
  background: #f8f9fa;
  min-height: 100vh;
  font-family: 'Helvetica', sans-serif;
}

/* Sidebar */
.dashboard-sidebar {
  width: 240px;
  background: #003d82;
  color: #fff;
  padding: 30px 20px;
  transition: all 0.3s ease-in-out;
}

.dashboard-sidebar h2 {
  font-size: 20px;
  margin-bottom: 25px;
}

.dashboard-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-sidebar ul li {
  margin-bottom: 12px;
}

.dashboard-sidebar ul li a {
  color: #cbd5e0;
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
}

.dashboard-sidebar ul li a:hover,
.dashboard-sidebar ul li.active a {
  background: #4a5568;
  color: #fff;
}

/* Content */
.dashboard-content {
  flex: 1;
  padding: 40px;
}

.welcome-card {
  background: #fff;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

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

.card {
  background: #fff;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h4 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

/* Table */
.order-table {
  width: 100%;
  border-collapse: collapse;
}

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

.order-table th {
  background: #f1f1f1;
  font-weight: 600;
}

.order-table tr:hover {
  background: #fafafa;
}

/* Buttons, Forms */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form-control:focus {
  border-color: #4a90e2;
  outline: none;
}

.form-actions {
  margin-top: 20px;
}

/* ---------- RESPONSIVE DESIGN ---------- */

/* Tablets and below */
@media (max-width: 992px) {
  .user-dashboard {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    padding: 15px 20px;
    text-align: center;
  }

  .dashboard-sidebar ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .dashboard-sidebar ul li {
    margin: 8px;
  }

  .dashboard-content {
    padding: 20px;
  }
}

/* Mobile phones */
@media (max-width: 600px) {
  .dashboard-sidebar h2 {
    display: none; /* hide big title for compact layout */
  }

  .dashboard-sidebar ul {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-sidebar ul li a {
    padding: 10px;
    text-align: center;
  }

  .welcome-card {
    padding: 15px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .order-table th,
  .order-table td {
    font-size: 14px;
    padding: 8px;
  }

  .dashboard-content {
    padding: 15px;
  }
}

/* --- BACK BUTTON --- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #333;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  transition: 0.25s ease;
}

.back-btn:hover {
  background: #f5f5f5;
  transform: translateX(-3px);
}

/* --- PAGE HEADING --- */
.order-details-container h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #2d3436;
}

/* --- CARDS --- */
.summary-card {
  padding: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #fafafa);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: 0.25s ease;
  border: 1px solid #f0f0f0;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.summary-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
  font-weight: 600;
  color: #2c3e50;
}

/* --- TEXT INSIDE CARD --- */
.summary-card p {
  font-size: 14px;
  margin: 6px 0;
  color: #444;
}

/* --- ORDER ITEMS CARD --- */
.items-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 1px solid #ededed;
}

.items-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 600;
  color: #2d3436;
}

/* --- ORDER ITEMS TABLE --- */
.order-items-table {
  width: 100%;
  border-collapse: collapse;
}

.order-items-table th {
  text-align: left;
  padding: 12px;
  font-size: 14px;
  background: #f8f9fa;
  border-bottom: 2px solid #e5e5e5;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #555;
}

.order-items-table td {
  padding: 12px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.order-items-table tr:hover {
  background: #f7f7f7;
  transition: 0.2s;
}

/* --- ANIMATION --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.order-link {
  font-weight: bold;
  color: #007bff;
}
.order-link:hover {
  text-decoration: underline;
}


