/* --- General Reset & Body --- */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f9eb;
  line-height: 1.6;
  color: #333;
}

/* --- Navbar --- */
.navbar {
  background-color: #0047ab;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(0, 71, 171, 0.15);
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.navbar .nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.navbar a:hover {
  opacity: 0.9;
}

.navbar .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Buttons --- */
.delivery-btn {
  background-color: #f7954b;
  border: none;
  border-radius: 25px;
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(247, 149, 75, 0.3);
  text-decoration: none;
  display: inline-block;
}

.delivery-btn:hover {
  background-color: #e77f35;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 149, 75, 0.4);
  color: white;
  text-decoration: none;
}

button {
  background-color: #0047ab;
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 71, 171, 0.3);
}

button:hover {
  background-color: #003580;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.4);
}

.btn-accept {
  background-color: #4CAF50;
  color: white;
}

.btn-accept:hover {
  background-color: #45a049;
}

.btn-reject {
  background-color: #f44336;
  color: white;
}

.btn-reject:hover {
  background-color: #d32f2f;
}

.btn-accept,
.btn-reject {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* --- Main Landing Page --- */
.main {
  padding: 60px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.main h1 {
  font-size: 2.5rem;
  color: #0047ab;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.main p {
  color: #666;
  margin-bottom: 40px;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* --- Button Group --- */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 350px;
  margin: 0 auto;
}

.btn-group a {
  text-decoration: none;
  padding: 18px 24px;
  background-color: #0047ab;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group a:hover {
  background-color: #003580;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 71, 171, 0.4);
  color: white;
  text-decoration: none;
}

/* --- Form Container --- */
.form-container {
  max-width: 450px;
  margin: 80px auto;
  padding: 40px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(0, 71, 171, 0.05);
}

.form-container h2 {
  color: #0047ab;
  margin-bottom: 32px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #0047ab;
  text-align: left;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0047ab;
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"] {
  background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus {
  background-color: white;
}

select {
  background-color: #fafafa;
  cursor: pointer;
}

select:focus {
  background-color: white;
}

textarea {
  resize: vertical;
  min-height: 100px;
  background-color: #fafafa;
}

textarea:focus {
  background-color: white;
}

.back-btn {
  background-color: transparent;
  color: white;
  padding: 8px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.back-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  text-decoration: none;
}

/* --- Flash Messages --- */
.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.flashes li {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Delivery List --- */
.delivery-list {
  margin-top: 30px;
}

.delivery-item {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #f7954b;
  border: 1px solid rgba(0, 71, 171, 0.05);
}

.delivery-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* --- Responsive Design --- */
@media (max-width: 767px) {
  .navbar {
    padding: 16px 20px;
  }
  
  .navbar .logo {
    font-size: 1.3rem;
  }
  
  .navbar .nav-links {
    gap: 16px;
  }
  
  .delivery-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
  }
  
  .main {
    padding: 40px 20px;
  }
  
  .main h1 {
    font-size: 2rem;
  }
  
  .main p {
    font-size: 1.1rem;
  }
  
  .btn-group {
    max-width: 300px;
  }
  
  .btn-group a {
    padding: 16px 20px;
    font-size: 1rem;
  }
  
  .form-container {
    margin: 40px auto;
    padding: 30px 20px;
  }
  
  .form-container h2 {
    font-size: 1.6rem;
  }
  
  input,
  textarea,
  select {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  label {
    font-size: 1rem;
  }
  
  button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .back-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .delivery-list {
    margin-top: 20px;
  }
  
  .delivery-item {
    padding: 16px;
  }
  
  .delivery-actions {
    gap: 8px;
  }
  
  .btn-accept,
  .btn-reject {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .flashes {
    margin: 0 0 20px 0;
  }
  
  .flashes li {
    padding: 12px 16px;
    margin-bottom: 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .navbar .nav-links {
    width: 100%;
    justify-content: center;
  }
  
  .delivery-btn {
    width: 100%;
  }
  
  .main {
    padding: 30px 16px;
  }
  
  .main h1 {
    font-size: 1.8rem;
  }
  
  .main p {
    font-size: 1rem;
  }
  
  .btn-group {
    max-width: 280px;
  }
  
  .btn-group a {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
  
  .form-container {
    margin: 30px auto;
    padding: 24px 16px;
  }
  
  .form-container h2 {
    font-size: 1.4rem;
  }
  
  input,
  textarea,
  select {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  button {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  
  .admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.8rem;
  }
  
  .admin-table th,
  .admin-table td {
    padding: 6px 8px;
    min-width: 80px;
  }
  
  .delivery-item h3 {
    font-size: 1.1rem;
  }
  
  .delivery-item p {
    font-size: 0.9rem;
    margin: 6px 0;
  }
}
