/* Main Container */
.orders-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1200px;
}

/* Sidebar Styling */
.profile-sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 2rem;
  height: 100%;
}

/* User Info Section */
.user-info {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 1rem auto;
  text-transform: uppercase;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Navigation Menu */
.profile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
}

.nav-link i {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.nav-link.logout {
  color: #dc3545;
}

.nav-link.logout:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Version Info */
.version-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f4;
  font-size: 0.75rem;
  color: #adb5bd;
  text-align: center;
}

/* Main Content Area */
.orders-content {
  padding: 2rem;
  background-color: #ffffff;
}

/* Orders Header */
.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.orders-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  white-space: nowrap;
}

.filter-select {
  min-width: 120px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 0.9rem;
  background-color: #ffffff;
}

.filter-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

.date-range-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background-color: #ffffff;
  color: #6c757d;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: left;
}

.date-range-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

/* Order Cards */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.order-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.order-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.order-status {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-delivered {
  background-color: #d4edda;
  color: #155724;
}

.status-processing {
  background-color: #fff3cd;
  color: #856404;
}

.status-cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.order-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.order-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.order-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.order-items {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.order-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-btn {
  background: none;
  border: 1px solid #dee2e6;
  color: #6c757d;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.share-btn:hover {
  border-color: #007bff;
  color: #007bff;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.profile-sidebar.mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.profile-sidebar.mobile.show {
  left: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .orders-container {
    margin: 1rem;
    border-radius: 8px;
  }

  .profile-sidebar {
    display: none;
  }

  .mobile-sidebar-toggle {
    display: flex;
  }

  .orders-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .orders-content {
    padding: 1rem;
  }

  .orders-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-controls {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .filter-group {
    flex: 1;
    min-width: 140px;
  }

  .filter-select,
  .date-range-btn {
    width: 100%;
  }

  .order-card {
    padding: 1rem;
  }

  .order-header {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .order-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .order-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .order-actions {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .orders-container {
    margin: 0.5rem;
    border-radius: 6px;
  }

  .orders-content {
    padding: 0.75rem;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .orders-title {
    font-size: 1.25rem;
  }

  .filter-controls {
    gap: 0.5rem;
  }

  .order-card {
    padding: 10px !important;
    margin: 0;
  }

  .order-number {
    font-size: 1rem;
  }

  .order-total {
    font-size: 1rem;
  }

  .share-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #495057;
}

.empty-state p {
  margin-bottom: 0;
}

/* Active state - only bold font weight */
.nav-link.active {
  font-weight: bold;
  color: #007bff;
}
