/**
 * Banner de Cookies - Conforme LGPD
 * ClínicaCheckup - 2025
 */

/* Banner de Cookies */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 3px solid var(--primary-color, #4a90e2);
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-title i {
  color: var(--primary-color, #4a90e2);
  font-size: 20px;
}

.cookie-consent-text {
  font-size: 14px;
  color: var(--text-light, #6c757d);
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-text a {
  color: var(--primary-color, #4a90e2);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-consent-text a:hover {
  color: var(--primary-hover, #357abd);
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-btn-accept {
  background: var(--primary-color, #4a90e2);
  color: #ffffff;
}

.cookie-consent-btn-accept:hover {
  background: var(--primary-hover, #357abd);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.cookie-consent-btn-reject {
  background: transparent;
  color: var(--text-dark, #2c3e50);
  border: 2px solid var(--border-color, #e9ecef);
}

.cookie-consent-btn-reject:hover {
  background: var(--bg-light, #f8f9fa);
  border-color: var(--text-light, #6c757d);
}

.cookie-consent-btn-settings {
  background: transparent;
  color: var(--primary-color, #4a90e2);
  border: 2px solid var(--primary-color, #4a90e2);
}

.cookie-consent-btn-settings:hover {
  background: var(--primary-color, #4a90e2);
  color: #ffffff;
}

/* Modal de Configurações de Cookies */
.cookie-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10001;
  overflow-y: auto;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.cookie-settings-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-settings-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-settings-header {
  padding: 24px;
  border-bottom: 2px solid var(--border-color, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cookie-settings-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
  margin: 0;
}

.cookie-settings-close {
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-light, #6c757d);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.cookie-settings-close:hover {
  background: var(--bg-light, #f8f9fa);
  color: var(--text-dark, #2c3e50);
}

.cookie-settings-body {
  padding: 24px;
}

.cookie-settings-intro {
  font-size: 14px;
  color: var(--text-light, #6c757d);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-category {
  padding: 20px;
  border: 2px solid var(--border-color, #e9ecef);
  border-radius: 8px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.cookie-category.active {
  border-color: var(--primary-color, #4a90e2);
  background: rgba(74, 144, 226, 0.05);
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cookie-category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
  margin: 0;
}

.cookie-category-toggle {
  position: relative;
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-category-toggle.active {
  background: var(--primary-color, #4a90e2);
}

.cookie-category-toggle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-category-toggle.active::after {
  transform: translateX(24px);
}

.cookie-category-description {
  font-size: 14px;
  color: var(--text-light, #6c757d);
  line-height: 1.6;
  margin: 0;
}

.cookie-category-list {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color, #e9ecef);
}

.cookie-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text-light, #6c757d);
}

.cookie-item-name {
  font-weight: 500;
  color: var(--text-dark, #2c3e50);
}

.cookie-settings-footer {
  padding: 24px;
  border-top: 2px solid var(--border-color, #e9ecef);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Responsividade */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-consent-btn {
    flex: 1;
    justify-content: center;
  }

  .cookie-settings-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }

  .cookie-settings-header,
  .cookie-settings-body,
  .cookie-settings-footer {
    padding: 16px;
  }

  .cookie-settings-title {
    font-size: 20px;
  }
}

/* Scrollbar personalizada para modal */
.cookie-settings-content::-webkit-scrollbar {
  width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb {
  background: var(--primary-color, #4a90e2);
  border-radius: 10px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover, #357abd);
}





