/* =============================================
   COPY ANIMATION STYLES
   ============================================= */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1;
}

.copyInput:hover {
  transform: scale(1.1);
  color: hsl(var(--main)) !important;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 0.9em;
  padding: 6px 10px;
  color: #fff;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 5px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  z-index: 1000;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%) translateY(-50%);
  }
  25% {
    opacity: 0.7;
    transform: translateX(40%) translateY(-50%);
  }
  50% {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
  75% {
    opacity: 0.7;
    transform: translateX(-20%) translateY(-50%);
  }
  100% {
    opacity: 0;
    transform: translateX(-40%) translateY(-50%);
  }
}

/* Copy button with tooltip */
.copy-tooltip {
  position: relative;
  display: inline-block;
}

.copy-tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.copy-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.copy-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* =============================================
   COOKIES CARD STYLES
   ============================================= */
.cookies-card {
  width: 520px;
  max-width: 90%;
  padding: 25px 30px;
  color: #fff;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999999;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-card.hide {
  bottom: -500px !important;
  opacity: 0;
  transform: scale(0.8);
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookies-card__content {
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 15px;
  opacity: 0.9;
}

.cookies-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 12px 35px;
  margin: 8px 10px 0 0;
  display: inline-block;
  border-radius: 30px;
  background: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cookies-btn:hover {
  color: #363636;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cookies-btn.accept {
  background: #28a745;
  color: white;
}

.cookies-btn.decline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cookies-btn.decline:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .cookies-card {
    width: calc(100% - 30px);
    left: 15px;
    right: 15px;
    bottom: 15px;
    font-size: 14px;
    padding: 20px;
    text-align: center;
  }
  
  .cookies-btn {
    width: 100%;
    margin: 5px 0;
  }
}

/* =============================================
   FORM VALIDATION TOOLTIP STYLES
   ============================================= */
.hover-input-popup {
  position: relative;
  display: inline-block;
  width: 100%;
}

.input-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  width: 320px;
  max-width: 90vw;
  background: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.hover-input-popup:hover .input-popup,
.hover-input-popup:focus-within .input-popup {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.input-popup::after {
  position: absolute;
  content: '';
  bottom: -10px;
  left: 50%;
  margin-left: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
}

.input-popup p {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}

.input-popup p:last-child {
  margin-bottom: 0;
}

.input-popup p::before {
  position: absolute;
  content: '';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  left: 0;
  top: 2px;
  line-height: 1;
  font-size: 16px;
}

.input-popup p.error {
  color: #ff6b6b;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ff6b6b;
}

.input-popup p.success {
  color: #51cf66;
}

.input-popup p.success::before {
  content: "\f058";
  color: #51cf66;
}

.input-popup p.info {
  color: #339af0;
}

.input-popup p.info::before {
  content: "\f05a";
  color: #339af0;
}

.input-popup p.warning {
  color: #ff922b;
}

.input-popup p.warning::before {
  content: "\f071";
  color: #ff922b;
}

/* =============================================
   RESPONSIVE FILTER STYLES
   ============================================= */
.show-filter {
  display: none;
  margin-bottom: 15px;
}

.filter-toggle-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.filter-toggle-btn i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.filter-toggle-btn.active i {
  transform: rotate(180deg);
}

.responsive-filter-card {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-height: 1000px;
  overflow: hidden;
  opacity: 1;
}

.responsive-filter-card.collapsed {
  max-height: 0;
  opacity: 0;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

@media (max-width: 767px) {
  .responsive-filter-card:not(.force-show) {
    display: none;
  }
  
  .show-filter {
    display: block;
  }
  
  .filter-card-wrapper {
    position: relative;
  }
}

/* =============================================
   FORM CONTROL STYLES
   ============================================= */
.btn-check:focus + .btn,
.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.form-control:focus,
.form-select:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
  transform: translateY(-1px);
  transition: all 0.3s ease;
}

.form-control:disabled,
.form-select:disabled {
  background-color: #f8f9fa;
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form validation states */
.form-control.is-valid:focus {
  border-color: #198754;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Label styles */
label.required:after {
  content: '*';
  color: #dc3545 !important;
  margin-left: 3px;
  font-weight: bold;
}

label.required::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #dc3545;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.form-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  display: flex;
  align-items: center;
}

.form-label i {
  margin-right: 8px;
  color: #667eea;
  font-size: 14px;
}

/* =============================================
   ADDITIONAL UTILITY STYLES
   ============================================= */
/* Smooth transitions */
.smooth-transition {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass morphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Badge styles */
.badge-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a40a0 100%);
}

/* =============================================
   RESPONSIVE MEDIA QUERIES
   ============================================= */
@media (max-width: 576px) {
  .input-popup {
    width: 280px;
    left: 0;
    transform: none;
  }
  
  .input-popup::after {
    left: 20px;
    margin-left: 0;
  }
  
  .cookies-card__icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .cookies-card__title {
    font-size: 18px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .cookies-card {
    width: 450px;
  }
  
  .input-popup {
    width: 300px;
  }
}

/* Print styles */
@media print {
  .cookies-card,
  .copyInput,
  .show-filter,
  .filter-toggle-btn {
    display: none !important;
  }
  
  .responsive-filter-card {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .cookies-card {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  }
  
  .input-popup {
    background: #2d3748;
  }
  
  .input-popup::after {
    border-color: #2d3748 transparent transparent transparent;
  }
  
  ::-webkit-scrollbar-track {
    background: #2d3748;
  }
}