.container_all {
    display: flex;
    flex-direction: column;
    /* overflow: hidden; */
}

.content-area {
    flex: 1;
    background-color: #555;
    position: relative;
}

.timeline-container {
    height: 90px;
    background-color: #000;
    position: relative;
    border-top: 1px solid #444;
    /* position: fixed; */
    bottom: 20px;
    width: 100%;
    overflow-x: auto; /* Enable horizontal scrolling */
}

/* Make the timeline area larger and more clickable */
.timeline-clickable {
    position: absolute;
    width: 500%; /* Make timeline 5x longer for better precision */
    height: 100%;
    bottom: 0px;
    left: 0;
    cursor: pointer;
    z-index: 10;
}

.timeline {
    position: relative;
    width: 500%; /* Match the clickable area width */
    height: 2px;
    background-color: #333;
    top: 20px;
}

.time-markers {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 500%; /* Match the timeline width */
    bottom: 0;
    height: 20px;
    pointer-events: none;
}

.time-marker {
    position: relative;
    width: 1px;
    height: 10px;
    background-color: #555;
}

.time-label {
    position: absolute;
    bottom: 0;
    transform: translateX(-50%);
    font-size: 12px;
    color: #aaa;
}

.time-selector {
    position: absolute !important;
    width: 2px;
    height: 40px;
    background-color: #ffcc00;
    top: 0;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 20;
}

#timeSelector{
    background-color: #0400ff;
    z-index: 400;
}

.current-time {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
}

.debug-info {
    display: flex;
    justify-content: end;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    color: white;
    float: right;
    margin-top: 12px;
}

.area_preview {
    height: 400px;
    background-color: #555;
}

.green-line {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 10px;
    background-color: green;
}
/* Preview Area Controls at Bottom Left */
.preview-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.btn-preview {
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
    padding: 14px 13px 14px 14px;
}

.btn-preview:hover {
    background-color: #0056b3;
}

.btn-preview i{
    font-size: 13px;
}

.btn-preview:active {
    transform: scale(0.9);
}

.area_preview {
    height: 400px;
    background-color: #555;
    position: relative;
}

/* Optional Icon Styling */
.fas {
    pointer-events: none; /* Prevent clicks on the icon itself */
}


.preview-image-container{
    width: 100%;
    height: 100%;
}
.preview-image-container img{
    object-fit: contain;
    width: 100% !important;
    height: 100% !important;
}

/* Speed control styling */
.speed-display {
  display: inline-block;
  padding: 8px 12px;
  margin-left: 10px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
}

.speed-slow {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #1976d2;
}

.speed-normal {
  background: #e8f5e8;
  border-color: #4caf50;
  color: #2e7d32;
}

.speed-fast {
  background: #fff3e0;
  border-color: #ff9800;
  color: #f57c00;
}

/* Speed control buttons */
#speedDownButton, #speedUpButton {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#speedDownButton:hover, #speedUpButton:hover {
  background: #5a6268;
}

#speedDownButton:disabled, #speedUpButton:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

/* Playback controls styling */
.preview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.btn-preview {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-preview:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-preview:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Specific button styling */
#startButton {
  background: #28a745;
}

#startButton:hover {
  background: #1e7e34;
}

#stopButton {
  background: #dc3545;
}

#stopButton:hover {
  background: #c82333;
}

#exportButton {
  background: #17a2b8;
}

#exportButton:hover {
  background: #138496;
}

/* Speed indicator enhanced styling */
#speedIndicator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Responsive design */
@media (max-width: 768px) {
  .preview-controls {
    gap: 8px;
    margin-top: 10px;
  }
  
  .btn-preview {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 40px;
  }
  
  .speed-display {
    padding: 6px 10px;
    font-size: 12px;
    margin-left: 8px;
  }
}


