/* Video Screenshot Stitching Specific Styles */

/* Screen Reader Only Text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.supported-formats {
  font-size: 14px !important;
  color: #9ca3af !important;
  font-style: italic;
}

.video-info {
  flex: 1;
  min-width: 280px;
  background: #000000;
  border: 1px solid #333;
  padding: 24px;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(34, 197, 94, 0.05); */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.03),
    transparent
  );
  transition: left 0.5s ease;
}

.video-info h4 {
  color: #2adb5c;
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  font-size: 14px;
}

.info-value {
  font-weight: 600;
  color: #22c55e;
  margin: 0;
  font-size: 14px;
  text-align: right;
}

/* Extraction Options */
.extraction-options {
  background: #000000;
  border: 1px solid #333;
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  position: relative;
  overflow: hidden;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 200% 0;
  }
  50% {
    background-position: -200% 0;
  }
}

.option-group {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.option-group + .option-group {
  margin-top: 12px;
}

.option-group label {
  font-weight: 600;
  color: #ffffff;
  font-size: 15px;
  font-family: "Montserrat", sans-serif;
}

.range-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-container input[type="range"] {
  flex: 1;
  height: 6px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

.range-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #22c55e;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
}

.range-container input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.range-container input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #22c55e;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
  transition: all 0.2s ease;
}

.range-value {
  font-weight: 600;
  color: #22c55e;
  font-size: 14px;
  /* min-width: 60px; */
  text-align: center;
  background: #1a2a1a;
  padding: 4px 8px;
  border: 1px solid #333;
  white-space: nowrap;
}

/* Messages */
.error-message,
.success-message,
.progress-message {
  padding: 16px 20px;
  margin: 20px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.error-message {
  background: linear-gradient(145deg, #2a1a1a 0%, #3a2a2a 100%);
  border: 1px solid #fecaca;
  color: #dc2626;
}

.success-message {
  background: linear-gradient(145deg, #1a2a1a 0%, #2a3a2a 100%);
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.progress-message {
    background: linear-gradient(145deg, #1a2a1a 0%, #2a3a2a 100%);
  border: 1px solid #333;
  color: #16a34a;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
  transition: width 0.3s ease;
  width: 0%;
}

/* Process Section */
.process-section {
  text-align: center;
  margin-top: 32px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-large::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-large:hover::before {
  left: 100%;
}

/* Preview Container */
.preview-container {
  margin: 32px 0;
}

.preview-panel {
  background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid #333;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
  transition: all 0.3s ease;
}

.preview-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.panel-header {
  background: linear-gradient(135deg, #2a2a2a 0%, #333333 100%);
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

.panel-title {
  color: #2adb5c;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  border: 0;
}

.panel-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.screenshot-preview-area {
  padding: 24px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  position: relative;
}

.screenshot-preview-area img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.screenshot-preview-area img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Metadata Info Styles */
.metadata-info {
  margin-top: 20px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.metadata-info h4 {
  margin: 0 0 15px 0;
  color: #2adb5c;
  font-size: 16px;
  font-weight: 600;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #000000;
  border: 1px solid #333;
}

.metadata-label {
  font-weight: 500;
  color: #ffffff;
  margin-right: 10px;
}

.metadata-value {
  font-weight: 600;
  color: #2adb5c;
  text-align: right;
}

.metadata-info p {
  margin: 8px 0;
  color: #ffffff;
}

.metadata-info strong {
  color: #16a34a;
  font-weight: 600;
}

/* Preview Section Layout Improvements */
.preview-section {
  margin-top: 0;
}

.preview-section .panel {
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.screenshot-preview-area {
  padding: 32px 24px;
  min-height: 250px;
  background: linear-gradient(145deg, #2a2a2a 0%, #333333 100%);
}

/* Video Info Panel Improvements */
.video-info {
  margin-bottom: 24px;
  margin-top: 24px;
}

.video-info h4 {
  color: #16a34a;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: "Montserrat", sans-serif;
}

.video-info .info-item:last-child {
  border-bottom: none;
}

.video-info .info-label {
  color: #ffffff;
  font-weight: 500;
}

.video-info .info-value {
  color: #2adb5c;
  font-weight: 600;
}

/* About Section */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-section h2 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #2adb5c 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin: 24px 0 16px 0;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #ffffff 0%, #e4e4e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section p {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-section ul,
.about-section ol {
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 20px;
  padding-left: 24px;
}

.about-section li {
  margin-bottom: 8px;
  font-size: 16px;
}

.about-section li strong {
  color: #2adb5c;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .option-group {
    flex-direction: column;
    align-items: flex-start;
  }
  .option-group select {
    width: 100%;
  }
  .upload-section {
    flex-direction: column;
  }

  .extraction-options {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-controls {
    justify-content: center;
  }

  .about-section {
    padding: 20px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .upload-content h3 {
    font-size: 22px;
  }

  .upload-icon {
    font-size: 48px;
  }

  .about-section h2 {
    font-size: 24px;
  }

  .about-section h3 {
    font-size: 20px;
  }
}
