/* Reset minimal margin/padding */
.orders-page {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 30px;
  font-family: Arial, sans-serif;
  color: #333;
  align-items: flex-start;
}

/* Sidebar on left, fixed width */
.orders-page .sidebar {
  width: 260px;
  background: #fff;
  padding: 25px 20px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
  align-self: flex-start;
  font-size: 14px;
  flex-shrink: 0;
}

/* Container for the right side content */
.orders-page > .container {
  flex: 1;
  background: #fff;
  padding: 25px 30px;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}














/* Container */
/* .orders-page {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 30px;
    padding: 0 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    align-items: flex-start; */
    /* background-color: #f8f8f8; /* light gray background for page */
/* } */ */

/* Sidebar */
/* .orders-page .sidebar {
    width: 260px;
    background-color: #fff;
    padding: 25px 20px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 20px;
    align-self: flex-start;
    font-size: 14px;
} */

/* Sidebar header */
.orders-page .sidebar h3 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
    color: #222;
    user-select: none;
}

/* Sidebar navigation list */
.orders-page .sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

/* Sidebar nav items */
.orders-page .sidebar ul li {
    margin-bottom: 15px;
}

/* Sidebar nav links */
.orders-page .sidebar ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

/* Sidebar active/hover link */
.orders-page .sidebar ul li a:hover,
.orders-page .sidebar ul li a.active {
    background-color: #eee;
    color: #222;
    font-weight: 600;
}

/* Logout button */
.orders-page .sidebar .logout {
    display: inline-block;
    padding: 10px 15px;
    width: 100%;
    background-color: #ff6a00;
    color: white;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    text-decoration: none;
    margin-top: 40px;
}

.orders-page .sidebar .logout:hover {
    background-color: #e25800;
}

/* Orders Section */
.orders-page .orders-section {
    flex: 1;
    background-color: #fff;
    padding: 30px 25px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
}

/* Section Title */
.orders-page .orders-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #222;
}

/* Tabs container */
.orders-page .tabs {
    display: flex;
    gap: 25px;
    border-bottom: 2px solid #f4a261; /* orange underline */
    margin-bottom: 25px;
}

/* Tabs links */
.orders-page .tabs a {
    position: relative;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    padding-bottom: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}

/* Active tab */
.orders-page .tabs a.active {
    color: #f4a261; /* orange */
    border-bottom: 3px solid #f4a261;
}

/* Hover tab */
.orders-page .tabs a:hover {
    color: #f4a261;
}

/* Order Card */
.orders-page .order-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

/* Product Image */
.orders-page .order-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Details container */
.orders-page .order-details {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}

/* Product name bold */
.orders-page .order-details strong {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Status badge */
.orders-page .status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    margin: 6px 0;
}

/* Status colors */
.orders-page .status.Processing {
    background-color: #f4a261; /* orange */
    color: white;
}

.orders-page .status.Delivered {
    background-color: #2ecc71;
    color: white;
}

.orders-page .status.Cancelled,
.orders-page .status.Returned {
    background-color: #e74c3c;
    color: white;
}

/* Order date */
.orders-page .order-details br + br {
    margin-bottom: 6px;
}

.orders-page .order-details span,
.orders-page .order-details br + span {
    font-weight: 600;
}

/* See details link */
.orders-page .see-details {
    color: #f4a261;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
    font-size: 13px;
}

.orders-page .see-details:hover {
    color: #e07b22;
}

/* Responsive: stack sidebar above content on narrow screens */
@media (max-width: 768px) {
  .orders-page {
    flex-direction: column;
    max-width: 100%;
    padding: 0 15px;
  }
  .orders-page .sidebar {
    width: 100%;
    position: relative;
    top: 0;
    margin-bottom: 25px;
    box-shadow: none;
    border-radius: 6px 6px 0 0;
  }
  .orders-page > .container {
    padding: 15px;
    box-shadow: none;
    border-radius: 0 0 6px 6px;
  }
}