/* phpcs:ignore */
.visolix-alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.visolix-alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.visolix-flex-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.visolix-form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-body-color);
  background-color: var(--bs-form-control-bg);
  background-clip: padding-box;
  border: var(--bs-border-width) solid var(--bs-border-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.visolix-btn {
  --bs-btn-padding-x: 0.75rem;
  --bs-btn-padding-y: 0.375rem;
  --bs-btn-font-size: 1rem;
  --bs-btn-font-weight: 400;
  --bs-btn-line-height: 1.5;
  --bs-btn-color: #212529;
  --bs-btn-bg: transparent;
  --bs-btn-border-width: var(--bs-border-width);
  --bs-btn-border-color: transparent;
  --bs-btn-border-radius: 0.375rem;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 1px rgba(0, 0, 0, 0.075);
  --bs-btn-disabled-opacity: 0.65;
  --bs-btn-focus-box-shadow: 0 0 0 0.25rem
    rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
  display: inline-block;
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
  font-family: var(--bs-btn-font-family);
  font-size: var(--bs-btn-font-size);
  font-weight: var(--bs-btn-font-weight);
  line-height: var(--bs-btn-line-height);
  color: var(--bs-btn-color);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
  border-radius: var(--bs-btn-border-radius);
  background-color: var(--bs-btn-bg);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.visolix-btn:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.visolix-text-center {
  text-align: center !important;
}

.visolix-icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  position: relative;
}

.visolix-downloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 16px;
  gap: 24px;
  color: #fff;
}

.visolix-downloader form {
  width: 100%;
}

.visolix-input-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  position: relative;
}

.visolix-input-left .visolix-form-control {
  padding: 14px 14px;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  outline: none;
  transition: 0.3s all;
  color: #212529;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  height: 46px;
  backdrop-filter: blur(9.48952px);
}

.visolix-input-left .visolix-form-control::-moz-placeholder {
  color: #8c8d9c;
}

.visolix-input-left .visolix-form-control::placeholder {
  color: #8c8d9c;
}

.visolix-input-left .visolix-paste-wrap {
  position: absolute;
  right: 6px;
  box-sizing: border-box;
  padding: 1px;
  border-radius: 6px;
}

.visolix-input-left .visolix-paste-wrap .visolix-paste {
  background: #d1ddfd;
  border-radius: 6px;
}

.visolix-btn.visolix-btn-paste {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #252638;
  border: none;
  gap: 4px;
}

.visolix-btn.visolix-btn-paste.active span {
  color: #000;
}

.visolix-btn.visolix-btn-paste:hover {
  color: #0a58ca;
}

.visolix-btn.visolix-btn-get {
  flex-direction: row;
  padding: 12px;
  gap: 12px;
  width: 100%;
  background: #00c9b7;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  border-radius: 8px;
  margin-top: 8px;
  border: none;
}

@media (min-width: 768px) {
  .visolix-downloader {
    padding: 24px 16px 64px 16px;
  }

  .visolix-downloader form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: max-content;
    gap: 8px;
  }

  .visolix-btn.visolix-btn-get {
    margin-top: 0;
    width: auto;
    padding-right: 30px;
    padding-left: 22px;
  }

  .visolix-input-left {
    width: 456px;
  }
}

/* Single download content start */

.visolix-single-content .visolix-download-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.visolix-single-content .visolix-thumb img {
  object-fit: cover;
  vertical-align: middle;
  border-radius: 10px;
  aspect-ratio: 1/1;
  max-width: 100%;
}

.visolix-single-content .visolix-video-links.visolix-download-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  margin: 30px;
  gap: 11px;
}

.visolix-single-content
  .visolix-download-bottom
  .visolix-btn.visolix-download-media-single {
  background-color: #0063f9;
  color: #fff;
  width: 100%;
  line-height: 19px;
  padding: 12px;
  border: none;
  box-shadow: 0 1px 4px rgba(22, 22, 29, 0.32);
  height: fit-content;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 10px;
}

.visolix-single-content .visolix-thumb {
  filter: drop-shadow(0 2px 16px rgba(32, 52, 89, 0.2));
  max-width: 300px;
}

@media screen and (min-width: 1024px) {
  .visolix-single-content .visolix-video-links.visolix-download-bottom {
    width: 300px;
  }
}

/* Single download content end */

/* fetched item start */
.visolix-multi-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.visolix-multi-content .visolix-download-content {
  border: 1px solid #d8d8db;
  filter: drop-shadow(0 2px 16px rgba(32, 52, 89, 0.2));
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  width: 270px;
  margin: 20px;
}

.visolix-multi-content .visolix-download-content .visolix-media-box {
  position: relative;
  width: 100%;
  padding-top: 100%;
}

.visolix-multi-content .visolix-download-content .visolix-media-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.visolix-multi-content .visolix-download-content .visolix-media-icon img {
  width: 100%;
  height: 100%;
  filter: invert(1);
}

.visolix-multi-content .visolix-download-content img {
  max-width: 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -o-object-fit: cover;
  object-fit: cover;
  vertical-align: middle;
}

.visolix-multi-content .visolix-download-content .visolix-download-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 27px 14px 27px;
  gap: 4px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, #000 87.5%);
}

.visolix-multi-content
  .visolix-download-content
  .visolix-download-bottom
  .visolix-btn.visolix-download-media {
  background: #0063f9;
  box-shadow: 0 1px 8px rgba(22, 22, 29, 0.34);
  border-radius: 4px;
  color: #fff;
  width: 100%;
  padding: 11px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  border: none;
}

.visolix-multi-content
  .visolix-download-content
  .visolix-btn.visolix-download-media {
  text-decoration: none;
}

/* fetched item end */

/* Countdown Timer Styles start*/
.countdown-container {
  text-align: center;
  margin: 50px auto;
  max-width: 340px;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

#countdown-heading {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 30px;
  font-weight: 300;
}

.countdown-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 30px;
}

.countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  font-weight: 300;
  color: #3498db;
}

.countdown-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.countdown-svg circle {
  fill: none;
  stroke-width: 6;
}

.countdown-svg circle:nth-child(1) {
  stroke: #ecf0f1;
}

.countdown-svg circle:nth-child(2) {
  stroke: #3498db;
  stroke-dasharray: 565.48;
  /* 2 * π * 90 */
  stroke-dashoffset: 565.48;
  transition: stroke-dashoffset 1s linear;
}

.file-size {
  font-size: 16px;
  color: #7f8c8d;
  margin-top: 20px;
}

.file-size-value {
  font-weight: 500;
  color: #34495e;
}

.download-success {
  margin-top: 30px;
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  display: block;
}

.checkmark__circle {
  stroke: #3498db;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #3498db;
  stroke-width: 3;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.btn-download-more {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 30px;
  border: none;
  cursor: pointer;
}

.btn-download-more:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}
/* Countdown Timer Styles end*/

/* Format Dropdown Styles */
.visolix-format-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  color: #495057;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  padding: 10px 30px 10px 12px; /* Adjusted padding */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  width: 100%;
  max-width: 200px;
  height: 46px; /* Match the height of input and button */
  box-sizing: border-box; /* Ensure padding is included in height */
}

.visolix-format-select:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.visolix-format-select:hover {
  border-color: #b8c2cc;
}

/* Custom dropdown arrow */
.visolix-format-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 8px 10px;
}

/* Optgroup styling */
.visolix-format-select optgroup {
  font-weight: bold;
  color: #6c757d;
}

/* Option styling */
.visolix-format-select option {
  font-weight: normal;
  color: #495057;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .visolix-format-select {
    max-width: 150px;
  }
}

/* Ensure consistent height across all form elements */
.visolix-input-left .visolix-form-control,
.visolix-btn.visolix-btn-get,
.visolix-format-select {
  height: 46px;
  box-sizing: border-box;
}
