/* Estilos do Plugin */
.plugin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.95), rgba(44, 62, 80, 0.95));
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.plugin-overlay.active {
  opacity: 1;
  visibility: visible;
}

.plugin-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.close-plugin {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.close-plugin:hover {
  background: rgba(255, 255, 255, 0.2);
}

.plugin-content {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.plugin-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.5s, opacity 0.5s;
  padding: 20px;
  text-align: left;
}

.panel-content {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 10px;
}

.panel-content .alert {
  text-align: left;
  margin-bottom: 20px;
}

.panel-content .form-group {
  text-align: left;
  margin-bottom: 15px;
}

.panel-content .row {
  margin-left: 0;
  margin-right: 0;
}

.panel-content .col-sm-6 {
  padding-left: 0;
  padding-right: 15px;
}

.panel-content .col-sm-6:last-child {
  padding-right: 0;
}

.plugin-step.active {
  opacity: 1;
  transform: translateX(0);
}

.plugin-step.active label {
  color: #fff;
  font-size: 20px;
}

.plugin-step.active .form-group {
  width: 80% !important;
}

.plugin-step.active .radio-inline label {
  color: #fff;
  font-size: 14px;
  background: #1b76a1f7;
}

.plugin-step.active .radio-inline input:checked + label {
  background: #2ecc71;
  font-weight: bold;
}

.plugin-step.active .checkbox label {
  color: #fff;
  font-size: 14px;
  background: #1b76a1f7;
  display: block;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 4px;
}

input.labelauty:checked + label {
    background-color: #14d3ff !important;
    color: #ffffff;
}

.plugin-step.active label label {
    color: #fff;
    font-size: 14px;
    margin-right: 10px;
    display: block;
    background-color: #1b76a1f7;
}

.plugin-step.active input.labelauty:checked + label {
    background-color: #00b8ff;
    color: #ffffff;
}

.plugin-step.leaving {
  transform: translateX(-100%);
}

.step-title {
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.plugin-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
}

.nav-button {
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.nav-button.next {
  background: rgba(46, 204, 113, 0.8);
}

.nav-button.next:hover {
  background: rgba(46, 204, 113, 1);
}

.nav-button.prev {
  background: rgba(241, 196, 15, 0.8);
}

.nav-button.prev:hover {
  background: rgba(241, 196, 15, 1);
}

.progress-container {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin: 20px auto;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #2ecc71;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.step-indicator {
  display: none;
}

.step-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.step-navigation .nav-button {
  min-width: 120px;
}

.plugin-response {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.5;
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Estilos personalizados para inputs no wizard */

.plugin-step select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.plugin-step select:focus {
  outline: none;
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.plugin-step select option {
  background: #2c3e50;
  color: white;
}

.plugin-step input[type="text"],
.plugin-step input[type="email"],
.plugin-step input[type="number"],
.plugin-step textarea {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 16px;
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease;
}

.plugin-step input[type="text"]:focus,
.plugin-step input[type="email"]:focus,
.plugin-step input[type="number"]:focus,
.plugin-step textarea:focus {
  outline: none;
  border-color: rgba(46, 204, 113, 0.8);
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.plugin-step textarea {
  resize: vertical;
  min-height: 80px;
}

.plugin-step .rating-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.plugin-step .rating-star {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color 0.3s ease;
}

.plugin-step .rating-star.filled {
  color: #f0ad4e;
}

.plugin-step .rating-star:hover {
  color: #f0ad4e;
}

@media (max-width: 600px) {
  .plugin-container {
    width: 95%;
    padding: 20px;
  }
  .step-title {
    font-size: 20px;
  }
}
