/* Cookie Consent Banner Styles */
:root {
  --primary-light: #009688;
  --primary-dark: #009688;
  --surface-light: #ffffff;
  --surface-dark: #000000;
  --background-light: #F5F5F5;
  --background-dark: #000000;
  --text-light: #212121;
  --text-dark: #ffffff;
  --border-light: #E0E0E0;
  --border-dark: #1F1F1F;
  --success-light: #4CAF50;
  --warning-light: #FFA726;
  --error-light: #E53935;
  --success-dark: #81C784;
  --warning-dark: #FFB74D;
  --error-dark: #EF5350;
}

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-light);
  color: var(--text-light);
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  border-top: 1px solid var(--border-light);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  #cookie-consent-banner {
    background: var(--surface-dark);
    color: var(--text-dark);
    border-top-color: var(--border-dark);
  }
  
  .cookie-consent-content {
    color: var(--text-dark) !important;
  }
  
  .cookie-consent-content p,
  .cookie-consent-content a,
  .cookie-settings-panel,
  .cookie-settings-option,
  .cookie-settings-option label {
    color: var(--text-dark) !important;
  }
  
  .cookie-settings-panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
  }
  
  .cookie-consent-content a {
    color: var(--primary-dark) !important;
    text-decoration: underline;
  }
}

.cookie-consent-content {
  flex: 1;
  margin-right: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}

.cookie-consent-content p {
  margin: 0 0 1rem 0;
  color: inherit;
  font-size: 0.95rem;
}

.cookie-consent-content a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-content a:hover {
  text-decoration: underline;
}

.cookie-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  transition: all 0.2s ease-in-out;
  text-transform: none;
  letter-spacing: 0.25px;
}

#cookie-consent-accept {
  background-color: var(--primary-light);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#cookie-consent-accept:hover {
  background-color: #00796B; /* Slightly darker teal */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#cookie-consent-settings {
  background-color: transparent;
  color: var(--primary-light);
  border: 1px solid var(--primary-light);
}

#cookie-consent-settings:hover {
  background-color: rgba(0, 150, 136, 0.1);
  transform: translateY(-1px);
}

.cookie-settings-panel {
  display: none;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.cookie-settings-option {
  margin: 0.75rem 0;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.cookie-settings-option:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.cookie-settings-option input[type="checkbox"] {
  margin-right: 0.75rem;
  accent-color: var(--primary-light);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cookie-settings-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  #cookie-consent-banner {
    flex-direction: column;
    text-align: left;
    padding: 1rem;
  }
  
  .cookie-consent-content {
    margin-right: 0;
    margin-bottom: 1.25rem;
    width: 100%;
  }
  
  .cookie-consent-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  
  .cookie-consent-btn {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-settings-actions {
    flex-direction: column;
  }
  
  .cookie-settings-actions .cookie-consent-btn {
    width: 100%;
  }
}
