/* =========================
   COOKIE BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #002147;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner span {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner a {
  color: #d4af37;
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #c19b2b;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-accept {
  background: #d4af37;
  color: #002147;
}

.btn-accept:hover {
  background: #c19b2b;
  transform: translateY(-2px);
}

.btn-settings {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile banner */
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions button {
    width: 100%;
  }
}

/* =========================
   COOKIE MODAL
   ========================= */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  animation: fadeIn 0.3s forwards;
  backdrop-filter: blur(2px);
}

@keyframes fadeIn {
  from { background: rgba(0,0,0,0); }
  to { background: rgba(0,0,0,0.6); }
}

/* TAB MODAL */
.tab-modal {
  display: flex;
  width: 90%;
  max-width: 900px;
  height: 90vh;
  max-height: 700px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(-50px);
  opacity: 0;
  animation: slideInTop 0.4s forwards;
}

@keyframes slideInTop {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* LEFT CATEGORY NAV + LOGO */
.tab-menu {
  background-color: #002147;
  color: white;
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
}

.tab-menu .logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.tab-menu .logo-container i {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  color: #d4af37;
}

.tab-menu .logo-container span {
  font-size: 18px;
  font-weight: 700;
}

.tab-menu .logo img {
  width: 20px; 
  height: auto;
  margin-right: 12px;
}

.tab-menu .tab-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 15px;
}

.tab-menu .tab-btn.active {
  background-color: #003366;
  border-left: 3px solid #d4af37;
}

.tab-menu .tab-btn:hover:not(.active) {
  background-color: rgba(255,255,255,0.1);
}

.tab-menu .tab-btn.hidden {
  display: none;
}

/* RIGHT CONTENT AREA */
.tab-content {
  flex: 1;
  padding: 50px 60px 90px;
  background: #ffffff;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.tab-slide {
  position: absolute;
  top: 50px;
  left: 100%;
  width: calc(100% - 120px);
  height: calc(100% - 140px);
  transition: left 0.4s ease;
  overflow-y: auto;
  padding-right: 20px;
}

.tab-slide.active {
  left: 60px;
}

.tab-slide h3 {
  margin-top: 0;
  margin-bottom: 24px;
  color: #002147;
  font-size: 28px;
  font-weight: 700;
}

.tab-slide p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

/* CLOSE BUTTON */
.tab-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e5e7eb;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #555;
  transition: all 0.3s ease;
  z-index: 100;
}

.tab-modal .close-modal:hover {
  background-color: #d1d5db;
  transform: rotate(90deg);
}

/* TOGGLE SWITCHES */
.switch {
  position: relative;
  display: inline-flex;
  gap: 55px;
  width: 56px;
  height: 30px;
  margin-right: 12px;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider.round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #dc2626; /* red disabled */
  border-radius: 30px;
  transition: 0.4s;
}

.slider.round::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.switch input:checked + .slider.round {
  background-color: #16a34a; /* green enabled */
}

.switch input:checked + .slider.round::before {
  transform: translateX(26px);
}

.switch input:disabled + .slider.round {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.toggle-label {
  display: inline-block;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
  min-width: 70px;
  color: #333;
}

/* BOTTOM ACTIONS */
.modal-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 60px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
  gap: 16px;
  background: white;
}

.modal-actions button {
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.modal-actions button:first-child {
  background-color: #d4af37;
  color: #002147;
}

.modal-actions button:first-child:hover {
  background-color: #c19b2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modal-actions button:last-child {
  background-color: #002147;
  color: white;
}

.modal-actions button:last-child:hover {
  background-color: #003366;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 33, 71, 0.3);
}


/* Mobile Modal */
@media (max-width: 768px) {
   .tab-modal {
    flex-direction: column;
    width: 95%;
    height: 95vh;
  }

  .tab-menu {
    flex: 0 0 auto;
    padding: 20px;
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .tab-menu .logo-container {
    display: none;
  }

  .tab-menu .tab-btn {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
  }

  .tab-content {
    padding: 30px 20px 80px;
  }

  .tab-slide {
    width: calc(100% - 40px);
    left: 100%;
    top: 30px;
    height: calc(100% - 110px);
  }

  .tab-slide.active {
    left: 20px;
  }

  .tab-slide h3 {
    font-size: 24px;
  }

  .modal-actions {
    padding: 16px 20px;
    flex-direction: column;
  }

  .modal-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cookie-modal {
    padding: 0;
  }

  .tab-modal {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }
}