.demo-button {
  cursor: pointer;
  position: relative;
  font-size: 18px;
  padding: 0.5em 1.2em;
  border-radius: 1rem;
  display: flex;
  font-weight: 500;
  align-items: center;
  color: #f5f5f5 !important;
  border: 1px solid #555;
  background-color: #222;
  user-select: none;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.demo-button:hover {
  border: 1px solid #ff8000a5;
  box-shadow: 0 0 0 3px rgba(255, 0, 93, 0.25);
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.green-button {
  border: 1px solid #3fef3f;
  color: #3fef3f;
}

.red-button {
  border: 1px solid #e46b39;
  color: #e46b39;
}

input {
  position: relative;
  font-size: 16px;
  color: #f5f5f5 !important;
  caret-color: #e46b39;
  padding: 0.7em 1em;
  border-radius: 1rem;
  font-weight: 500;
  border: 1px solid #555;
  background-color: #272828;
  margin-bottom: 0.5em;
  width: 100%;
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

input:hover,
input:focus {
  outline: none !important;
  border: 1px solid #ff7b00a5 !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 93, 0.25);
  transition: box-shadow 0.2s ease, border 0.2s ease;
}

.demo-container-center {
  position: relative;
  margin-bottom: 2em;
  padding: 2em 0;
  min-height: 150px;
  border: 1px solid #555;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem;
}

.demo-container-start {
  padding: 1em;
  position: relative;
  margin-bottom: 2em;
  min-height: 100px;
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 1rem;
}

.active-class {
  color: #e46b39 !important;
}

.demo-dropdown {
  position: relative;
}

.demo-dropdown::after {
  content: '';
  position: absolute;
  pointer-events: none;
  top: 50%;
  right: 1.2em;
  transform: translate(0, -50%);
  width: 12px;
  height: 12px;
  background-color: #f5f5f5;
  clip-path: polygon(50% 0%,
      100% 40%,
      0% 60%,
      17% 60%,
      50% 83%,
      83% 60%,
      100% 60%,
      50% 100%,
      0% 60%,
      100% 40%,
      83% 40%,
      50% 17%,
      16.67% 40%,
      0% 40%);
}

.demo-dropdown>select {
  appearance: none !important;
  -webkit-appearance: none;
  width: 100%;
  height: 40px;
  font-size: 18px;
  padding: 0.5em 1.2em;
  background-color: #222222;
  border: 1px solid #555555;
  border-radius: 0.8rem;
  color: #f5f5f5;
  cursor: pointer;
  outline: none;
  margin-right: calc(12px + 8px);
}

.demo-dropdown select:focus {
  background: #222222;
  border: 1px solid #ff7b00a5 !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 93, 0.25);
}

.demo-control-group {
  display: flex !important;
  gap: 1em !important;
  margin: 1em 0 !important;
  flex-wrap: wrap !important;
}

.purple-button {
  border-color: #8000ff;
  color: #8000ff;
}

.demo-input {
  max-width: 200px;
}

.image-demo-grid {
  display: grid;
  padding: 0 4em;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  margin: 2em 0;
  width: 100%;
}

.image-demo-item {
  border: 1px solid #444;
  border-radius: 0.8rem;
  padding: 1em;
  text-align: center;
}

.demo-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin: 1em auto;
  background: #1a1a1a;
}

h4 {
  margin: 0.5em 0;
  color: #ff8000;
}

.demo-device-indicator {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 1em;
  border: 1px solid #444;
  border-radius: 0.8rem;
}

.device-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  transition: all 0.3s ease;
}

.device-dot.active {
  background: #ff8000;
  box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.2);
}

.demo-log-container {
  border: 1px solid #444;
  border-radius: 0.8rem;
  padding: 1em;
  margin: 1em 0;
  max-height: 200px;
  overflow-y: auto;
}

.demo-log-entry {
  padding: 0.5em;
  margin: 0.3em 0;
  background: #1a1a1a;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.9em;
}

.demo-classes-input {
  background-color: #272828;
  color: #f5f5f5 !important;
  max-width: 200px;
  border-radius: 5rem;
  height: 38px;
  padding: 10px;
  transition: border 0.2s ease, border-radius 0.2s ease, opacity 0.2s ease;
}

.demo-classes-form-control {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.demo-classes-form-control label {
  margin-block-end: 5px;
}

.demo-classes-input--error {
  border: 2px solid rgba(255, 0, 93, 1);
}

.demo-classes-input--squared {
  border-radius: 0;
}

.demo-classes-input--disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Animations */
@keyframes bounceIn {

  from,
  20%,
  40%,
  60%,
  80%,
  to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }

  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  20% {
    transform: scale3d(1.1, 1.1, 1.1);
  }

  40% {
    transform: scale3d(0.9, 0.9, 0.9);
  }

  60% {
    opacity: 1;
    transform: scale3d(1.03, 1.03, 1.03);
  }

  80% {
    transform: scale3d(0.97, 0.97, 0.97);
  }

  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.bounceIn {
  animation-duration: calc(var(--animate-duration) * 0.75);
  animation-name: bounceIn;
}