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

.tiktok-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);
}

.tiktok-downloader-plugin .input-group-text {
  background: hsla(0, 0%, 100%, 0.3);
  border: none;
  color: #888;
  cursor: pointer;
}

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

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

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

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

.tiktok-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;
}

.tiktok-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%;
  display: none;
}

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

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

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

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

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

.tiktok-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;
}

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

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

.tiktok-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;
}

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

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

.tiktok-downloader-plugin .top-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
  text-align: center;
}

.tiktok-downloader-plugin .top-loader .spinner-border {
  width: 4rem;
  height: 4rem;
}

.tiktok-downloader-plugin .loader-progress {
  margin-top: 15px;
  font-size: 16px;
  color: #da001d;
  font-weight: bold;
}

.tiktok-downloader-plugin .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9998;
  display: none;
}

.tiktok-downloader-plugin .loading {
  display: none;
  text-align: center;
  margin: 20px 0;
}

.tiktok-downloader-plugin .author-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.tiktok-downloader-plugin .author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.tiktok-downloader-plugin .author-name {
  font-weight: 500;
  color: #333;
}

.tiktok-downloader-plugin .alert {
  margin-top: 15px;
}

@media (max-width: 768px) {
  .tiktok-downloader-plugin .download-option {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

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

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

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

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

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