/**
 * Cookie modal styles
 * WhiteComp stílusú, szögletes design Bootstrap 5 alapokon
 */

/* Modal alap stílus */
#cookieConsentModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
}

#cookieConsentModal .modal-dialog {
  max-width: 800px;
  margin: 30px auto;
  animation: modalFadeIn 0.3s ease-in-out;
}

#cookieConsentModal .modal-content {
  background-color: #ffffff;
  border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 0; /* Szögletes modal */
}

#cookieConsentModal .modal-body {
  padding: 30px;
  position: relative;
}

/* Animáció */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fejléc stílusok */
#cookieConsentModal .modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

#cookieConsentModal p {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 5px;
}

#cookieConsentModal a {
  color: #257ca7;
  text-decoration: underline;
}

#cookieConsentModal .form-check-input:checked {
  background-color: #257ca7;
  border-color: #257ca7;
}

#cookieConsentModal a:hover {
  text-decoration: none;
}

#cookieConsentModal .btn-close {
  float: right;
}

#cookieConsentModal .btn-close:hover {
  opacity: 1;
}

/* Cookie kategóriák stílusok */
.cookie-categories {
  margin-bottom: 25px;
}

.form-check {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 10px;
}

.form-check-label {
  font-size: 14px;
  color: #333;
}

/* Művelet gombok */
.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.btn-group {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #257ca7;
  color: white;
  opacity: 0.9;
  border-radius: 0; /* Szögletes gombok */
}

.btn-primary:hover {
  background-color: #257ca7;
  opacity: 1;
}

.btn-primary svg {
  margin-top: -3px;
  margin-right: 8px;
}

.btn-secondary {
  background-color: rgba(55, 62, 68, 1) !important;
  opacity: 0.9;
  color: #ffffff;
  /* border: 1px solid rgba(55, 62, 68, 1) !important; */
  border-radius: 0; /* Szögletes gombok */
}

.btn-secondary:hover {
  opacity: 1;
}

.btn-success {
  background-color: #008000 !important;
  color: white;
  opacity: 0.9;
  border-radius: 0; /* Szögletes gombok */
}

.btn-success:hover {
  opacity: 1;
  background-color: #008000 !important;
}

.btn-link {
  background: none;
  color: #257ca7;
  text-decoration: underline;
  padding: 0;
}

/* Részletes nézet stílusok */
.detailed-actions {
  justify-content: center;
  margin-top: 30px;
}

/* Tabfülek */
.tabs {
  margin-bottom: 20px;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  font-weight: bold;
}

.tab-btn.active {
  color: #257ca7;
  border-bottom: 2px solid #257ca7;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cookie kategória részletek */
.cookie-category-detail {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.category-header h6 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.category-header p {
  font-size: 13px;
  margin-bottom: 5px;
  color: #666;
}

/* Toggle switch */
.toggle-container {
  position: relative;
  display: inline-block;
}

.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background-color: #ccc;
  cursor: pointer;
  transition: 0.4s;
  border-radius: 0; /* Szögletes dizájn */
}

.toggle:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 0; /* Szögletes dizájn */
}

input:checked + .toggle {
  background-color: #257ca7;
}

input:checked + .toggle:before {
  transform: translateX(26px);
}

.toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toggle részletek gomb */
.toggle-details {
  padding: 5px 0;
  font-size: 12px;
  color: #257ca7;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.toggle-details:hover {
  color: #257ca7;
  text-decoration: underline;
}

/* Cookie részletek */
.cookie-details {
  background-color: #f8f9fa;
  padding: 15px;
  margin-top: 0px;
  border-radius: 0; /* Szögletes elemek */
}

.cookie-detail-item {
  margin-bottom: 10px;
}

.cookie-detail-item p {
  margin: 5px 0;
  font-size: 13px;
}

/* Lebegő cookie beállítások gomb */
#cookieConsentFloatingButton {
  position: fixed;
  bottom: 14px;
  left: 20px;
  z-index: 1000;
  background-color: white;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  font-size: 12px;
  cursor: pointer;
  font-weight: bold;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border-radius: 0; /* Szögletes dizájn */
}

#cookieConsentFloatingButton:hover {
  background-color: #f8f9fa;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 830px) {
  #cookieConsentFloatingButton {
    bottom: 80px;
  }
}

/* @media (max-width: 768px) { */
@media (max-width: 830px) {
  #cookieConsentModal .modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
  }

  #aboutTab h6 {
    font-size: 15px;
  }

  #aboutTab {
    font-size: 14px;
  }

  #cookieConsentModal .modal-dialog {
    max-width: 100%;
    margin: 0px auto;
    min-height: 100vh;
    animation: modalFadeIn 0.3s ease-in-out;
  }

  #cookieConsentModal .modal-body {
    padding: 20px;
    position: relative;
  }

  #cookieConsentModal .modal-content {
    width: calc(100% - 30px);
    width: 100%;
  }

  .cookie-category-detail {
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }

  .toggle-details {
    margin-bottom: 0px;
  }

  /* Részletes nézet stílusok */
  .detailed-actions {
    justify-content: center;
    margin-top: 0px;
  }
}
