/* Cookie Consent Scoped CSS - Mind IT Systems */
#mindit-cookie-consent {
  font-family: 'Poppins', 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

#mindit-cookie-consent * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Banner Container */
#mindit-cookie-consent .mindit-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #111625;
  color: #ffffff;
  padding: 20px 24px;
  z-index: 2147483647;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
  animation: minditSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

#mindit-cookie-consent .mindit-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

#mindit-cookie-consent .mindit-banner-content {
  flex: 1 1 auto;
}

#mindit-cookie-consent .mindit-banner-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #ffffff;
}

#mindit-cookie-consent .mindit-banner-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #b0b7c3;
}

#mindit-cookie-consent .mindit-banner-text a {
  color: #007bff;
  text-decoration: underline;
}

#mindit-cookie-consent .mindit-banner-text a:hover {
  color: #3395ff;
}

#mindit-cookie-consent .mindit-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons */
#mindit-cookie-consent .mindit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

#mindit-cookie-consent .mindit-btn-accept {
  background-color: #007bff;
  color: #ffffff;
}

#mindit-cookie-consent .mindit-btn-accept:hover {
  background-color: #0056b3;
  color: #ffffff;
}

#mindit-cookie-consent .mindit-btn-reject {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

#mindit-cookie-consent .mindit-btn-reject:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

#mindit-cookie-consent .mindit-btn-settings {
  background-color: transparent;
  color: #b0b7c3;
  border-color: transparent;
  padding: 10px 12px;
}

#mindit-cookie-consent .mindit-btn-settings:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Preferences Modal */
#mindit-cookie-consent .mindit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#mindit-cookie-consent .mindit-modal-content {
  background: #ffffff;
  color: #212529;
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: minditFadeIn 0.25s ease forwards;
  overflow: hidden;
}

@keyframes minditFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

#mindit-cookie-consent .mindit-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mindit-cookie-consent .mindit-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #111625;
}

#mindit-cookie-consent .mindit-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
}

#mindit-cookie-consent .mindit-modal-close:hover {
  color: #000000;
}

#mindit-cookie-consent .mindit-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}

#mindit-cookie-consent .mindit-modal-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Category Items */
#mindit-cookie-consent .mindit-category-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #e9ecef;
}

#mindit-cookie-consent .mindit-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

#mindit-cookie-consent .mindit-category-title {
  font-size: 15px;
  font-weight: 600;
  color: #111625;
}

#mindit-cookie-consent .mindit-category-desc {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.4;
}

#mindit-cookie-consent .mindit-status-badge {
  font-size: 12px;
  font-weight: 600;
  color: #007bff;
  background: #e6f0ff;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Toggle Switch */
#mindit-cookie-consent .mindit-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

#mindit-cookie-consent .mindit-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#mindit-cookie-consent .mindit-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}

#mindit-cookie-consent .mindit-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

#mindit-cookie-consent .mindit-switch input:checked + .mindit-slider {
  background-color: #007bff;
}

#mindit-cookie-consent .mindit-switch input:checked + .mindit-slider:before {
  transform: translateX(20px);
}

#mindit-cookie-consent .mindit-switch input:disabled + .mindit-slider {
  opacity: 0.65;
  cursor: not-allowed;
}

#mindit-cookie-consent .mindit-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #mindit-cookie-consent .mindit-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  #mindit-cookie-consent .mindit-banner-actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  #mindit-cookie-consent .mindit-banner-actions .mindit-btn {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }
  
  #mindit-cookie-consent .mindit-banner-actions .mindit-btn-settings {
    flex: 1 1 100%;
  }

  #mindit-cookie-consent .mindit-modal-content {
    max-height: 95vh;
  }
}
