/* Cookie Consent Banner Styles */

/* Main Banner Styles */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 3px solid #007bff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.banner-content {
  padding-right: 1rem;
}

.banner-title {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.banner-description {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.banner-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.banner-actions .btn {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  font-weight: 500;
}

/* Modal Styles */

.cookie-category {
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background-color: #f8f9fa;
}

.category-header {
  margin-bottom: 0;
}

.category-title {
  color: #495057;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.category-description {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.form-check-label strong {
  color: #495057;
  font-weight: 600;
}

.form-check-label small {
  margin-top: 0.25rem;
}

/* Toast Styles */

#cookie-consent-toast {
  min-width: 300px;
}

/* Badge Styles */

.badge {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Responsive Design */

@media (max-width: 768px) {
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .banner-content {
    margin-bottom: 1rem;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .banner-actions {
    justify-content: stretch;
  }
}

@media (max-width: 768px) {
  .banner-actions .btn {
    flex: 1;
    min-width: 120px;
  }
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .banner-description {
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .cookie-banner {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .banner-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .banner-description {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

/* High contrast mode support */

@media (prefers-contrast: high) {
  .cookie-banner {
    border-top: 4px solid #000;
    background: #fff;
  }
}

@media (prefers-contrast: high) {
  .banner-title {
    color: #000;
  }
}

@media (prefers-contrast: high) {
  .banner-description {
    color: #333;
  }
}

/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

/* Custom button focus styles for accessibility */

.cookie-banner .btn:focus, .cookie-banner .btn:active {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  outline: none;
}

/* Modal enhancements */

#cookieSettingsModal .modal-header {
  border-bottom: 2px solid #e9ecef;
}

#cookieSettingsModal .modal-footer {
  border-top: 2px solid #e9ecef;
}

/* Loading state for buttons */

.cookie-banner .btn.loading {
  position: relative;
  color: transparent;
}

.cookie-banner .btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state animation */

.cookie-banner.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-top-color: #28a745;
}

/* Error state */

.cookie-banner.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-top-color: #dc3545;
}

/* Settings panel styles */

#cookieSettingsModal .form-check-input:checked {
  background-color: #28a745;
  border-color: #28a745;
}

#cookieSettingsModal .form-check-input:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Icon animations */

.cookie-banner .fa-cookie-bite {
  color: #ff6b35;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Status indicator */

.cookie-status-indicator {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 1040;
  background: rgba(40, 167, 69, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cookie-status-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.cookie-status-indicator.cookies-disabled {
  background: rgba(220, 53, 69, 0.9);
}

/* Cookie Consent Lightbox */

.cookie-consent-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.lightbox-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.lightbox-message {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.4;
}

.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive lightbox */

@media (max-width: 576px) {
  .lightbox-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}

@media (max-width: 576px) {
  .lightbox-message {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .lightbox-icon {
    font-size: 1.5rem;
  }
}

