@import url('https://fonts.googleapis.com/css2?family=Days+One&family=Lexend:wght@100..900&family=Teko:wght@300..700&display=swap');

body {
  font-family: 'Lexend', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #e6f2f5;
  color: #333;
}

h2 {
  text-align: center;
  color: #4a7c8a;
  margin: 40px 0 30px;
  font-size: 32px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
  font-weight: 600;
}

#history-section {
  max-width: 1100px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.history-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 25px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 10px;
}

th, td {
  padding: 15px;
  text-align: left;
}

th {
  background-color: #4a7c8a;
  color: white;
  font-weight: 500;
  letter-spacing: 0.5px;
}

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

tbody tr {
  border-bottom: 1px solid #f2f2f2;
  transition: all 0.2s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.view-pdf-btn {
  background-color: #4a7c8a;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-pdf-btn:hover {
  background-color: #3a6b76;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-orders {
  text-align: center;
  padding: 50px 0;
  color: #666;
  font-style: italic;
  font-size: 16px;
}

.order-date {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.queue-number {
  color: #4a7c8a;
  font-weight: 600;
  margin-right: 8px;
}

/* Status badge */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  min-width: 90px;
}

.status-completed {
  background-color: #dff7e8;
  color: #0d904f;
  border: 1px solid #c3e6d4;
}

.status-pending {
  background-color: #fff6de;
  color: #d18700;
  border: 1px solid #ffe0b2;
}

/* Add a nice header background */
#header-bg {
  background: linear-gradient(135deg, #4a7c8a, #80bdcc);
  padding: 40px 0 80px;
  margin-bottom: -50px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#header-bg h2 {
  color: white;
  margin: 10px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .history-container {
    padding: 15px;
    overflow-x: auto;
  }
  
  th, td {
    padding: 12px 10px;
  }
  
  .view-pdf-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}
