/* Variables */
:root {
  --bg-color: #040814;
  --text-color: #e2e8f0;
  --text-muted: #64748b;
  --accent-gold: #cba052; /* Classy Gold */
  --accent-blue: #1e3a8a;
  --border-color: rgba(255, 255, 255, 0.05);
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", sans-serif;
  --header-height: 75px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
}

/* Header Styling */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 46px;
  color: var(--accent-gold);
}

.logo-text h1 {
  font-size: 1.6rem;
  letter-spacing: 4px;
  color: #fff;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
}

.logo-text p {
  font-size: 0.65rem;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 35px;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: var(--accent-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -15px; /* Adjust based on exact design padding */
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-gold) 50%,
    transparent 100%
  );
  box-shadow: 0 0 10px 1px rgba(203, 160, 82, 0.6);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 3.5px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px var(--accent-gold);
  z-index: 2;
}

/* Header Actions */
.register-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background-color: rgba(203, 160, 82, 0.05);
  box-shadow: 0 0 15px rgba(203, 160, 82, 0.15);
}

.lock-icon {
  width: 14px;
  height: 14px;
  color: #8c9baf; /* Greyish white like the image */
}

/* Content Area (Slider) */
.content-area {
  margin-top: var(--header-height);
  width: 100%;
  height: calc(100vh - var(--header-height));
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  /* 16:9 aspect ratio (1920x1080) */
  aspect-ratio: 16 / 9;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Image fills container, cropping if needed */
.slider-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

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

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #0d1424;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 95%;
  max-width: 950px; /* Maximum width for spacious admin layout */
  padding: 40px;
  position: relative;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(30, 58, 138, 0.4);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #fff;
}

.modal-header h2 {
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-size: 2rem; /* Larger modal title */
}

.modal-header p {
  font-size: 1.05rem; /* Larger subtitle */
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem; /* Larger label */
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 14px 18px; /* Larger input field */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem; /* Larger input text */
  transition: border-color 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 14px; /* Larger button */
  background-color: var(--accent-gold);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.05rem; /* Larger text */
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: #ffca28;
  box-shadow: 0 0 15px rgba(251, 192, 45, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin-top: 15px;
  font-size: 0.85rem;
  text-align: center;
}

.form-message.success {
  color: #4caf50;
}
.form-message.error {
  color: #f44336;
}
.form-message.pending {
  color: var(--accent-gold);
}

/* PDF Section */
.pdf-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pdf-section h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.pdf-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.pdf-list {
  list-style: none;
}

.pdf-list li {
  margin-bottom: 10px;
}

.pdf-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pdf-list a::before {
  content: "📄";
}

.pdf-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.hidden {
  display: none !important;
}

/* Admin Styles Overlay */
.admin-container {
  padding: 100px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #0d1424;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.admin-table th,
.admin-table td {
  padding: 18px; /* More spacing inside table cells */
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold);
  font-weight: 600;
}

.status-badge {
  padding: 8px 14px; /* Larger badge */
  border-radius: 4px;
  font-size: 0.85rem; /* Larger text */
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap; /* Prevent squishing into multiple lines */
  display: inline-block;
}

.status-pending {
  background: rgba(251, 192, 45, 0.2);
  color: var(--accent-gold);
}
.status-approved {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.action-btn {
  padding: 10px 20px; /* Larger button for Goedkeuren */
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem; /* Larger text */
  white-space: nowrap; /* Prevent button text cutoff */
  font-weight: 500;
  text-transform: uppercase;
}
.action-btn:hover {
  background: #2563eb;
}
.action-btn:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
}

/* Custom Scrollbars (Global) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #040814;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(203, 160, 82, 0.4); /* Subtle gold */
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 160, 82, 0.7);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .header {
    height: auto;
    padding: 15px 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo-container {
    order: 1;
    width: auto;
    gap: 8px;
  }

  .logo-icon {
    width: 28px;
    height: 32px;
  }

  .logo-text h1 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
  }

  .logo-text p {
    font-size: 0.5rem;
    letter-spacing: 0px;
  }

  .header-actions {
    order: 2;
  }

  .register-btn {
    padding: 6px 12px;
    font-size: 0.65rem;
    gap: 5px;
  }

  .lock-icon {
    width: 12px;
    height: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
    overflow-x: auto;
    justify-content: space-between; /* Spread evenly */
    padding-bottom: 8px;
    gap: 8px; /* Smaller gap */
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 0.55rem; /* Smaller font to fit all 5 */
    white-space: nowrap; /* Prevent "OVER REFREF" from breaking into 2 lines */
    padding: 5px 0;
    letter-spacing: 0.5px;
  }

  .content-area {
    height: auto;
    min-height: calc(100vh - 120px);
    margin-top: 120px;
    align-items: flex-start;
    padding: 20px 0;
  }

  .slider-container {
    height: auto;
  }

  /* Modal Mobile Fixes */
  .modal-content {
    padding: 20px 10px; /* Minimal padding on small screens to maximize table space */
  }
}

/* Footer Styles */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(4,8,20,0.9);
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
  font-size: 0.85rem;
  z-index: 200;
}
.footer a {
  color: var(--accent-gold);
  text-decoration: underline;
}
.footer a:hover {
  opacity: 0.85;
}
.footer .privacy-note {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Ensure page content does not hide behind fixed footer */
body {
  padding-bottom: 60px; /* approximate footer height */
}
