:root {
  --theme-primary: #ff7d0d;
  --theme-secondary: #01ae3b;
  --theme-black: #111;
}
body { margin: 0; font-family: Arial, sans-serif; }
.header { display: flex; align-items: center; justify-content: space-between; background:white; padding: 10px 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo img { height: 90px; margin-right: 16px; }
.search-bar { flex: 1; display: flex; justify-content: center; }
.search-bar input[type="text"] { width: 320px; padding: 14px 16px; border: 1px solid var(--theme-secondary); border-radius: 4px 0 0 4px; outline: none; font-size: 1.1rem; }
.search-bar button { padding: 14px 24px; border: 1px solid var(--theme-primary); background: var(--theme-primary); color: #fff; border-radius: 0 4px 4px 0; cursor: pointer; transition: background 0.2s; font-size: 1.1rem; }
.search-bar button:hover { background: var(--theme-secondary); border-color: var(--theme-secondary); }
nav { margin-left: 40px; }
.nav-list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { text-decoration: none; color:black; font-weight: 500; padding: 8px 12px; border-radius: 4px; transition: background 0.2s, color 0.2s; }
.nav-list a:hover, .nav-list .dropdown:hover > a { background: var(--theme-primary); color: #fff; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: var(--theme-black); min-width: 180px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-radius: 4px; z-index: 10; }
.dropdown-content a { display: block; padding: 10px 16px; color: #fff; border-radius: 0; }
.dropdown-content a:hover { background: var(--theme-secondary); color: #fff; }
.dropdown:hover .dropdown-content { display: block; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 1001;
}
.nav-toggle .bar {
  width: 28px;
  height: 4px;
  background: var(--theme-primary);
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}
@media (max-width: 1200px) {
  .header { flex-direction: column; align-items: stretch; padding: 10px 10px; }
  nav { margin-left: 0; }
  .search-bar { margin: 10px 0; }
  .nav-list { flex-direction: column; gap: 1; }
  .nav-list > li { margin-bottom: 4px; }
  .logo { justify-content: center; }
  .nav-toggle { display: flex; }
  nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; box-shadow: 0 4px 16px rgba(0,0,0,0.08); padding-bottom: 16px; z-index:2000;}
  nav.active { display: block; }
  .header { position: relative; }
}
@media (max-width: 600px) {
  .logo img { height: 60px; }
  .search-bar { flex: unset; width: 60vw; min-width: 0; }
  .search-bar input[type="text"] { width: 60%; min-width: 0; font-size: 1rem; padding: 10px 8px; }
  .search-bar button { width: 40%; font-size: 1rem; padding: 10px 8px; }
  .header { flex-direction: row; align-items: center; justify-content: space-between; padding: 6px 2vw; }
} 


/* My Bids Page Styles */
.bids-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bids-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
}

.bids-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.bids-table tr:hover {
  background: #f8f9fa;
}

.bids-table tr:last-child td {
  border-bottom: none;
}

/* Status Indicators */
.status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.won {
  background: #d4edda;
  color: #155724;
}

.status.leading {
  background: #d1ecf1;
  color: #0c5460;
}

.status.outbid {
  background: #f8d7da;
  color: #721c24;
}

.status.paid {
  background: #d1e7dd;
  color: #0f5132;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.status.rejected {
  background: #f8d7da;
  color: #721c24;
}

/* Pay Now Button */
.pay-now-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.pay-now-btn:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.no-payment {
  color: #6c757d;
  font-style: italic;
}

/* No Bids State */
.no-bids {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-bids p {
  color: #6c757d;
  font-size: 18px;
  margin-bottom: 20px;
}

.browse-btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.browse-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Login Required */
.login-required {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-required p {
  color: #6c757d;
  font-size: 16px;
}

.login-required a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.login-required a:hover {
  text-decoration: underline;
}

/* Payment Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
}

.modal-close .material-icons-outlined {
  font-size: 20px;
  color: #6c757d;
}

/* Payment Form */
#paymentForm {
  padding: 24px;
}

.payment-details {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #007bff;
}

.payment-details h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
}

.payment-details p {
  margin: 0;
  color: #6c757d;
}

.payment-details strong {
  color: #28a745;
  font-size: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.modal-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group select,
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* File Upload */
.file-upload {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-text {
  pointer-events: none;
}

.file-upload-text .material-icons-outlined {
  font-size: 48px;
  color: #6c757d;
  margin-bottom: 12px;
}

.file-upload-text p {
  margin: 8px 0;
  color: #6c757d;
}

.file-upload-text .file-types {
  font-size: 12px;
  color: #adb5bd;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-primary {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-primary:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bids-table {
    font-size: 14px;
  }
  
  .bids-table th,
  .bids-table td {
    padding: 10px 8px;
  }
  
  .modal {
    width: 95%;
    margin: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .btn-secondary,
  .btn-primary {
    width: 100%;
  }
}
