.yt-downloader-plugin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin: 0 auto;
}

.yt-downloader-plugin .input-group {
  width: 100%;
  max-width: 800px;
  background: hsla(0, 0%, 100%, 0.3);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(164, 8, 25, 0.05);
}

.yt-downloader-plugin .input-group-text {
  background: hsla(0, 0%, 100%, 0.3);
  border: none;
  color: #888;
  cursor: pointer; /* Add cursor pointer for paste button */
}

.yt-downloader-plugin .form-control {
  border: none;
  background: hsla(0, 0%, 100%, 0.3);
  padding: 14px;
  font-size: 14px;
  color: #555;
}

.yt-downloader-plugin .form-control:focus {
  box-shadow: none;
  background: white;
  color: #333;
}

/* Change input group colors on focus */
.yt-downloader-plugin .input-group:focus-within {
  background: white;
}

.yt-downloader-plugin .input-group:focus-within .input-group-text {
  background: white;
  color: #333;
}

.yt-downloader-plugin .btn-danger {
  background-color: #f13a4e;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 10px rgba(208, 53, 70, 0.25);
  font-size: 12px;
  margin: 8px;
  border-radius: 8px !important;
  white-space: nowrap;
}

.yt-downloader-plugin .results-container {
  background: rgb(255 255 255 / 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  padding: 16px;
  margin-top: 18px;
  max-width: 800px;
  width: 100%;
}

.yt-downloader-plugin .video-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.yt-downloader-plugin .video-thumbnail {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  width: 180px;
  height: 120px;
}

.yt-downloader-plugin .video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-downloader-plugin .video-title {
  flex: 1;
  display: flex;
  align-items: center;
  text-align: left;
}

.yt-downloader-plugin .video-title h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.yt-downloader-plugin .download-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 10px;
  border: 1px solid #f1f1f1;
  border-radius: 10px;
  margin-bottom: 10px;
}

.yt-downloader-plugin .option-label {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  color: black;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-downloader-plugin .format-badge {
  background: #f4f4f5;
  color: #11181c;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
}

.yt-downloader-plugin .download-btn {
  border: 1px solid #faa0bf;
  background-color: #fee7ef;
  color: #f31260;
  gap: 4px;
  height: 32px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.yt-downloader-plugin .download-btn:hover {
  border: 1px solid #f31260;
  background-color: #f31260;
  color: white;
}

.yt-downloader-plugin .icon-video {
  font-size: 18px;
  color: #555;
}

.yt-downloader-plugin .icon-audio {
  font-size: 18px;
  color: #555;
}

.yt-downloader-plugin .dropdown-menu {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yt-downloader-plugin .dropdown-item {
  padding: 10px 20px;
}

.yt-downloader-plugin .dropdown-item:hover {
  background-color: #f8f9fa;
}

.yt-downloader-plugin .status-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
  display: none;
}

.yt-downloader-plugin .status-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.yt-downloader-plugin .status-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.yt-downloader-plugin .status-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.yt-downloader-plugin .loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 3px solid #f13a4e;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive styles */
@media (max-width: 768px) {

  .yt-downloader-plugin .download-option {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .yt-downloader-plugin .download-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .yt-downloader-plugin .video-header {
    flex-direction: column;
    gap: 10px;
  }

  .yt-downloader-plugin .video-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .yt-downloader-plugin .video-title h2 {
    font-size: 16px;
  }

  .yt-downloader-plugin .option-label {
    font-size: 12px;
  }
}

/* Button loading state */
.yt-downloader-plugin .button-loading {
  pointer-events: none;
  opacity: 0.7;
}
