body {
  background: #0368d9;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

h1 {
  text-align: center;
  margin-top: 40px;
  font-size: 2.5em;
  color: #ffffff;
  letter-spacing: 2px;
  padding: 0 10px;
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.main-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  max-width: 1600px;
  margin: 40px auto;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.main-content {
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.side-image {
  flex: 0 1 300px;
  position: sticky;
  top: 20px;
}

.side-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.countdown-wrapper {
  text-align: center;
  padding: 25px;
  background: white;
  border: 1px solid #cfdef3;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(42, 82, 152, 0.1);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.countdown-wrapper h2 {
  color: #2a5298;
  margin-top: 0;
  font-size: 1.5em;
}

a {
  display: block;
  margin: 10px auto;
  padding: 12px 24px;
  background: #2a5298;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s;
  box-shadow: 0 2px 8px rgba(42, 82, 152, 0.08);
  width: 80%;
}

a:hover {
  background: #1e3c72;
  transform: translateY(-2px) scale(1.03);
}

.nav-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 15px;
  z-index: 9999;
}

a.nav-btn {
  display: block;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
}

a.nav-btn:hover {
  background: none !important;
  transform: scale(1.1);
}

.nav-btn img {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .nav-buttons {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 20px;
    padding-top: 20px;
  }
}

#countdown {
  color: #2a5298;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: bold;
  margin-top: 15px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
  padding: 10px 5px;
  background: #2a5298;
  color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-unit .number {
  font-size: 1.5em;
  line-height: 1;
}

.countdown-unit .label {
  font-size: 0.7em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 4px;
}

.dataTables_wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-sizing: border-box;
}

table {
  width: 100% !important;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
  background-color: white;
  color: #222;
}

th {
  background-color: #f4f7f6;
  color: #0368d9;
  font-weight: 600;
}

tr:hover {
  background-color: #eef1f6;
}

input:not([type="radio"]):not([type="checkbox"]),
select {
  background-color: white !important;
  color: #222 !important;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
}

select option {
  background-color: white !important;
  color: #222 !important;
}

input:focus,
select:focus {
  outline: none;
  border-color: #2a5298;
}

.dt-button-collection {
  background-color: white !important;
}

.dt-button-collection .dt-button {
  background-color: white !important;
  color: #222 !important;
}

.dt-button-collection .dt-button:hover {
  background-color: #f0f0f0 !important;
  color: #222 !important;
}

.site-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #cfdef3;
}

.site-footer a {
  display: inline;
  width: auto;
  margin: 0 5px;
  padding: 0;
  background: none;
  box-shadow: none;
  color: #fff;
  text-decoration: underline;
  font-weight: normal;
}

.site-footer a:hover {
  background: none;
  transform: none;
  color: #cfdef3;
  text-decoration: none;
}

/* =========================================
   LEGAL MODAL STYLES
   ========================================= */
.legal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.legal-modal-content {
  background: white;
  color: #333;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: left;
  line-height: 1.5;
}

.legal-modal-content h2 {
  color: #2a5298;
  margin-top: 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  font-size: 1.4rem;
}

.legal-modal-content p {
  margin-bottom: 10px;
}

.legal-modal-content ul {
  padding-left: 20px;
  margin-bottom: 25px;
  background: #f9f9f9;
  padding: 15px 20px 15px 35px;
  border-left: 4px solid #2a5298;
  border-radius: 4px;
}

.legal-modal-content li {
  margin-bottom: 8px;
}

.legal-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: auto;
  margin: 0;
  box-shadow: none;
  font-size: 1rem;
}

.modal-btn.accept {
  background: #2a5298;
  color: white;
  border: 1px solid #2a5298;
}

.modal-btn.accept:hover {
  background: #1e3c72;
  transform: translateY(-1px);
}

.modal-btn.decline {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.modal-btn.decline:hover {
  background: #fff5f5;
  color: #c0392b;
}