/* 360° VR Video Converter Styles */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* Upload Section */
.upload-section {
  margin-bottom: 30px;
  background-color: #000000;
}

.upload-content h3 {
  margin: 20px 0 15px;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
}

.upload-content p {
  color: #cccccc;
  margin: 8px 0;
  font-size: 0.95rem;
}

.select-btn {
  background: #2adb5c;
  color: white;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.select-btn:hover {
  background: #22c55e;
  transform: translateY(-1px);
}

/* File Preview */
.preview-section {
  margin-bottom: 30px;
  background-color: #000000;
}

.file-preview {
  background: #111111;
  border: 1px solid #333333;
  padding: 20px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.file-icon {
  width: 50px;
  height: 50px;
  background: #2adb5c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.file-details {
  flex: 1;
}

.file-name {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.file-size {
  color: #cccccc;
  font-size: 0.9rem;
}

.remove-file {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-file:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 40px;
  padding: 50px 30px;
  color: white;
  position: relative;
  overflow: hidden;
  background: none;
}

header .lead {
  font-size: 1rem;
  margin-bottom: 35px;
  opacity: 0.95;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  color: #f8f8f8;
  font-weight: 400;
}

/* Features Highlight */
.features-highlight {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  border-radius: 0;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item i {
  font-size: 1.3rem;
  opacity: 0.9;
}

.feature-item span {
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

/* Conversion Options */
.conversion-options {
  background: #111111;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid #333333;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group label {
  color: #ffffff;
  min-width: 150px;
  font-size: 0.95rem;
}

.option-group select,
.option-group input[type="number"],
.field-control-item select,
.field-control-item input[type="number"] {
  padding: 10px 14px;
  border: 1px solid #333333;
  font-size: 0.95rem;
  background: #111111;
  color: #ffffff;
  transition: all 0.2s ease;
  min-width: 150px;
  width: 100%;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

.option-group select:focus,
.option-group input[type="number"]:focus,
.field-control-item select:focus,
.field-control-item input[type="range"]:focus {
  outline: none;
  border-color: #2adb5c;
  box-shadow: 0 0 0 3px rgba(42, 219, 92, 0.2);
  transform: translateY(-1px);
}

.option-group select:hover,
.option-group input[type="number"]:hover,
.field-control-item select:hover,
.field-control-item input[type="number"]:hover {
  border-color: #444444;
  box-shadow: 0 2px 4px rgba(42, 219, 92, 0.1);
}

.option-group input[type="checkbox"],
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2adb5c;
  cursor: pointer;
  background: #111111;
  border: 1px solid #333333;
}

/* Checkbox Groups */
.checkbox-group {
  margin-bottom: 15px;
}

.checkbox-group:last-child {
  margin-bottom: 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 8px 0;
}

.checkbox-group label:hover {
  color: #2adb5c;
}

/* Advanced Options */
.advanced-options {
  background: #111111;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #333333;
}

.advanced-options h3 {
  margin-bottom: 25px;
  color: #22c55e;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Advanced Grid Layout */
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 25px;
}

.advanced-column {
  background: #1a1a1a;
  padding: 20px;
  border: 1px solid #333;
}

/* Processing Grid Layout */
.processing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.processing-column {
  background: #1a1a1a;
  padding: 20px;
  border: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  .advanced-grid,
  .processing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Field Control Sections */
.field-control-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #111111;
  border: 1px solid #333333;
}

.field-control-section:last-child {
  margin-bottom: 0;
}

.field-control-section h4,
.fov-controls h4,
.rotation-controls h4,
.processing-options h4 {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #333333;
}

/* Slider Groups */
.slider-group {
  margin-bottom: 20px;
}

.slider-group:last-child {
  margin-bottom: 0;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.95rem;
}

.slider-group label span {
  background: #2adb5c;
  color: white;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 50px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(42, 219, 92, 0.2);
}

.field-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.field-control-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-control-item label {
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-control-item .range-value {
  background: #2adb5c;
  color: white;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.option-row:last-child {
  margin-bottom: 0;
}

/* Range Sliders */
input[type="range"] {
  width: 100%;
  height: 8px;
  background: #333333;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.2s ease;
}

input[type="range"]:hover {
  background: #444444;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2adb5c;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(42, 219, 92, 0.3);
  transition: all 0.2s ease;
  border: 3px solid white;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #22c55e;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(42, 219, 92, 0.4);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2adb5c;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 3px 8px rgba(42, 219, 92, 0.3);
  transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  background: #22c55e;
  transform: scale(1.15);
}

/* Slider Value Display */
.option-group span {
  font-weight: 600;
  color: #2adb5c;
  min-width: 40px;
  text-align: center;
  font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 15px;
  margin: 0;
  border: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-secondary:hover {
  border-color: #2adb5c;
  color: #2adb5c;
  transform: translateY(-1px);
}

/* Messages */
.error-message,
.success-message {
  padding: 15px 20px;
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-message {
  background: #2a1a1a;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.success-message {
  background: #1a2a1a;
  color: #16a34a;
  border: 1px solid #333;
}

/* Command Container */
.command-container {
  margin-bottom: 30px;
}

.command-panel {
  background: #111111;
  border: 1px solid #333333;
  overflow: hidden;
}

.panel-header {
  background: #0a0a0a;
  padding: 15px 20px;
  border-bottom: 1px solid #333333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #22c55e;
  margin: 0;
}

.panel-controls {
  display: flex;
  gap: 10px;
}

.panel-controls .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: auto;
}

.command-textarea {
  width: 100%;
  min-height: 120px;
  padding: 20px;
  border: none;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ffffff;
  background: #111111;
  resize: vertical;
}

.command-textarea:focus {
  outline: none;
  background: #0a0a0a;
}

/* Explanation Section */
.explanation-section {
  padding: 25px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.explanation-section h3 {
  color: #2adb5c;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}

.explanation-content {
  color: #cccccc;
  line-height: 1.6;
}

.explanation-item {
  background: #111111;
  padding: 20px;
  border: 1px solid #333;
}

.explanation-item code {
  background: #333333;
  padding: 2px 6px;
  font-size: 0.85rem;
  color: #2adb5c;
  font-weight: 600;
}

/* Presets Section */

.presets-section h3 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  /* margin-bottom: 20px; */
}

.preset-card {
  background: #111111;
  padding: 24px;
  border: 1px solid #333333;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.preset-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.preset-card:hover {
  border-color: #2adb5c;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(42, 219, 92, 0.2);
}

.preset-card:hover::before {
  transform: scaleX(1);
}

.preset-card:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

.preset-card.selected {
  border-color: #2adb5c;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  box-shadow: 0 8px 25px rgba(42, 219, 92, 0.15);
}

.preset-card.selected::before {
  transform: scaleX(1);
}

.preset-card.selected h4 {
  color: #2adb5c;
}

.preset-card.selected .preset-specs {
  background: #2adb5c;
  color: white;
}

/* Focus styles for accessibility */
.preset-card:focus {
  outline: 3px solid #2adb5c;
  outline-offset: 2px;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .presets-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .preset-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .preset-card {
    padding: 16px;
  }

  .preset-card h4 {
    font-size: 1rem;
  }

  .preset-card p {
    font-size: 0.85rem;
  }
}

.preset-card h4 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.preset-card p {
  color: #9ca3af;
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.preset-specs {
  background: #333333;
  color: #2adb5c;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* About Section */
.about-section {
  margin-bottom: 30px;
}

.about-section h2 {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.about-section h3 {
  color: #ffffff;
  margin: 25px 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.about-section p {
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 15px;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 10px 0;
  color: #9ca3af;
  line-height: 1.6;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list strong {
  color: #2adb5c;
  font-weight: 600;
}

/* FAQ Section */

.faq-section h2 {
  color: #ffffff;
  margin-bottom: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.faq-item {
  padding-bottom: 20px;
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  color: #ffffff;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  color: #9ca3af;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  header {
    padding: 30px 15px;
  }

  header h1 {
    font-size: 2rem;
  }

  header .lead {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .features-highlight {
    gap: 15px;
    margin-top: 25px;
  }

  .feature-item {
    min-width: 140px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .feature-item i {
    font-size: 1.1rem;
  }

  .feature-item span {
    font-size: 0.8rem;
  }

  .option-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .option-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .option-group label {
    min-width: auto;
  }

  input[type="range"] {
    width: 100%;
    max-width: 300px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Advanced Options Mobile */
  .advanced-options {
    padding: 20px;
  }

  .field-controls-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .field-control-section {
    padding: 15px;
    margin-bottom: 20px;
  }

  .field-control-section h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .field-control-item label {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .field-control-item .range-value {
    align-self: flex-end;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.modal-content {
  background: #111111;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #cccccc;
  cursor: pointer;
  padding: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #333333;
  color: #ffffff;
}

/* Modal Body */
.modal-body {
  padding: 24px;
}

/* Success Modal */
.modal-success .modal-title {
  color: #2adb5c;
}

.modal-success .modal-title i {
  color: #2adb5c;
}

.result-stats {
  background: #0a0a0a;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.result-stats div {
  margin-bottom: 8px;
  color: #ffffff;
}

.result-stats div:last-child {
  margin-bottom: 0;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Error Modal */
.modal-error .modal-title {
  color: #dc2626;
}

.modal-error .modal-title i {
  color: #ef4444;
}

.error-message {
  background: #1a0a0a;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid #ff6666;
  color: #ff9999;
  font-size: 0.9rem;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* Processing Modal */
.modal-processing .modal-title {
  color: #ffffff;
}

.modal-processing .modal-title i {
  color: #2adb5c;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.processing-info {
  text-align: center;
  padding: 20px 0;
}

.processing-message {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 16px;
}

.processing-time {
  color: #cccccc;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    margin: 20px;
  }

  .modal-header,
  .modal-body {
    padding: 20px;
  }

  .result-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.panel-header {
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.panel-controls {
  width: 100%;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  header .lead {
    font-size: 1rem;
  }

  .features-highlight {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .conversion-options,
  .advanced-options {
    padding: 20px;
  }

  .command-textarea {
    font-size: 0.8rem;
    padding: 15px;
  }
}
