/* Existing styles unchanged */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  z-index: -1;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-group textarea {
  height: 100px;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  background: #2a5298;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn:hover {
  background: #1e3c72;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.response {
  margin-top: 1rem;
  padding: 0.5rem;
  border-radius: 5px;
  display: none;
}

.response.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

.response.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

.dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metrics, .order-creation, .invoices, .trackers, .leaderboards, .team-tracker, .orders, .order-actions {
  margin-bottom: 2rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.metric-card, .zip-info-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.metric-card h3, .zip-info-card h3 {
  margin: 0 0 0.5rem;
  color: #333;
}

.metric-card p, .zip-info-card p {
  font-size: 1.5rem;
  color: #2a5298;
}

.invoices table, .trackers table, .orders table, .team-tracker table, #pdf-table, #zip-table-content {
  width: 100%;
  border-collapse: collapse;
}

.invoices th, .invoices td, .trackers th, .trackers td, .orders th, .orders td, .team-tracker th, .team-tracker td, #pdf-table th, #pdf-table td, #zip-table-content th, #zip-table-content td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.invoices th, .trackers th, .orders th, .team-tracker th, #pdf-table th, #zip-table-content th {
  background: #2a5298;
  color: white;
}

.invoices select, .orders select {
  padding: 0.5rem;
  border-radius: 5px;
}

.tracker ul, .leaderboard ul {
  list-style: none;
  padding: 0;
}

.tracker li, .leaderboard li {
  padding: 0.5rem;
  background: #f0f0f0;
  margin-bottom: 0.5rem;
  border-radius: 5px;
}

.leaderboards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 1000px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.zip-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

#zip-table {
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .dashboard-container {
    padding: 1rem;
  }
  header {
    flex-direction: column;
    gap: 1rem;
  }
  .leaderboards {
    grid-template-columns: 1fr;
  }
  .modal-content {
    margin: 5% auto;
    padding: 15px;
  }
  .zip-info {
    grid-template-columns: 1fr;
  }
  #pdf-table, #zip-table-content {
    font-size: 0.8rem;
  }
  #pdf-table th, #pdf-table td, #zip-table-content th, #zip-table-content td {
    max-width: 100px;
  }
}