/* public/css/styles.css */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #1e1e1e; /* Dark background for modern look */
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  flex-direction: column;
  background-color: #1e1e1e; /* Dark background */
  overflow: hidden; /* Prevent overflow due to zoom */
}

.video-player {
  flex-grow: 1; /* Occupies remaining space after controls */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Ensure the single and quad containers fill the video area */
#singleViewContainer,
#quadViewContainer {
  width: 100%;
  height: 100%;
}


.video-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transform-origin: center center;
}

.video-js {
  width: 100% !important;
  height: 100% !important;
  transition: transform 0.2s ease; /* Smooth zoom and pan transitions */
  cursor: grab;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.video-js:active {
  cursor: grabbing;
}

#drawCanvas {
  /* Initially, drawing is disabled */
}

.controls {
  padding: 10px 20px; /* Reduced padding to save space */
  background-color: rgba(30, 30, 30, 0.95); /* Semi-transparent dark background */
  color: #00FF00; /* Light green color for timecode */
  display: flex;
  flex-direction: column;
}

.controls .row {
  width: 100%;
}

.controls button,
.controls span {
  margin: 2px;
  font-size: 0.9rem; /* Reduced font size */
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn {
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 100px; /* Reduced min-width */
  background-color: #2d2d2d;
  color: #ffffff;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  background-color: #3e3e3e;
}

#live {
  background: linear-gradient(45deg, #ff4e50, #f9d423);
  color: white;
  border: none;
}

.timecode {
  font-size: 2rem; /* Increased size for better visibility */
  color: #00FF00; /* Light green color */
  font-weight: bold;
}

.frame-slider-container {
  width: 80%;
  max-width: 500px;
  position: relative;
}

#frameSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 12px; /* Reduced height */
  border-radius: 6px;
  background: #444;
  outline: none;
  opacity: 0.9;
  transition: opacity .2s;
  cursor: pointer;
}

#frameSlider:hover {
  opacity: 1;
}

#frameSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px; /* Reduced size */
  height: 25px; /* Reduced size */
  border-radius: 50%;
  background: #00FF00;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#frameSlider::-webkit-slider-thumb:hover {
  background: #32CD32;
  transform: scale(1.1);
}

#frameSlider::-moz-range-thumb {
  width: 25px; /* Reduced size */
  height: 25px; /* Reduced size */
  border-radius: 50%;
  background: #00FF00;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#frameSlider::-moz-range-thumb:hover {
  background: #32CD32;
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 3px; /* Reduced margin */
  font-size: 0.8rem;
  color: #ffffff;
}

.frame-feedback {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  color: #32CD32;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.frame-feedback.show {
  opacity: 1;
}

/* Style for speed indicator */
#currentSpeed {
  pointer-events: none; /* Disable interactions */
  background-color: #17a2b8;
  color: white;
  border-radius: 5px;
  padding: 6px 12px;
  font-size: 1rem;
}

#muteToggle {
  background-color: #6c757d; /* Bootstrap secondary color */
  color: white;
  border: none;
  border-radius: 6px;
  width: 100px; /* Reduced width */
  height: 35px; /* Reduced height */
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#muteToggle:hover {
  background-color: #5a6268;
  transform: scale(1.05);
}

/* Zoom Buttons */
#zoomIn, #zoomOut {
  background-color: #28a745; /* Bootstrap success color */
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 100px; /* Reduced min-width */
}

#zoomIn:hover, #zoomOut:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  background-color: #38c172;
}

/* Frame Slider Container */
.frame-slider-container {
  width: 90%;
  max-width: 500px;
}

/* Drawing Controls */
#drawControls {
  background-color: rgba(50, 50, 50, 0.9);
  padding: 8px;
  border-radius: 6px;
}

#drawControls label {
  margin-right: 5px;
}

#drawControls input[type="color"],
#drawControls input[type="range"] {
  margin-right: 10px;
  height: 25px;
}

/* Logo Styling */
.logo {
  width: 40px; /* Default width */
  height: auto; /* Maintain aspect ratio */
}

/* Responsive Design */
@media (max-width: 768px) {
  .controls {
    padding: 8px 10px; /* Further reduced padding */
  }

  .controls button,
  .controls span {
    font-size: 0.8rem; /* Further reduced font size */
    padding: 5px 8px;
  }

  .timecode {
    font-size: 1.8rem; /* Slightly reduced */
  }

  /* Adjust Frame Control Slider size on smaller screens */
  #frameSlider {
    height: 10px;
  }

  #frameSlider::-webkit-slider-thumb,
  #frameSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .slider-labels {
    font-size: 0.7rem;
  }

  /* Adjust mute button size on smaller screens */
  #muteToggle {
    width: 80px;
    height: 30px;
    font-size: 0.8rem;
  }

  /* Adjust speed indicator */
  #currentSpeed {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  /* Adjust control buttons minimum width */
  .control-btn {
    min-width: 80px;
  }

  /* Adjust zoom buttons minimum width */
  #zoomIn, #zoomOut {
    min-width: 80px;
  }

  /* Adjust Frame Control Slider Container width */
  .frame-slider-container {
    width: 100%;
    max-width: 400px;
  }

  /* Adjust Drawing Controls */
  #drawControls {
    flex-direction: column;
    align-items: center;
  }

  #drawControls input[type="range"] {
    width: 80%;
    margin-bottom: 5px;
  }

  /* Adjust Logo size on smaller screens */
  .logo {
    width: 30px; /* Smaller width */
  }
}
/* General Styles */
body.login-body {
  background-color: #2c2c2c; /* Charcoal background */
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo {
  width: 120px; /* Default width */
  height: auto; /* Maintain aspect ratio */
}

.card {
  background-color: #3a3a3a; /* Slightly lighter charcoal for the card */
  border: none;
  border-radius: 15px;
}

.card-title {
  font-weight: bold;
}

.form-control-lg {
  border-radius: 10px;
  padding: 15px;
  font-size: 1.1rem;
  background-color: #4a4a4a; /* Dark input background */
  border: 1px solid #555555; /* Dark border */
  color: #ffffff; /* White text */
}

.form-control-lg::placeholder {
  color: #cccccc; /* Light grey placeholder text */
}

.btn-primary {
  background-color: #1a73e8; /* Professional blue color */
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #1669c1; /* Darker blue on hover */
  transform: translateY(-2px);
}

.alert {
  border-radius: 10px;
}

.alert i {
  margin-right: 8px;
}

.text-white {
  color: #ffffff !important;
}

.text-muted {
  color: #b3b3b3 !important;
}

/* Responsive Design */
@media (max-width: 576px) {
  .logo {
    width: 80px; /* Smaller width for mobile */
  }

  .form-control-lg {
    font-size: 1rem;
    padding: 12px;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 8px;
  }

  .card {
    border-radius: 10px;
  }
}

/* Additional Enhancements */
.container {
  padding: 20px;
}

.card-body {
  padding: 30px;
}

.text-center h3 {
  color: #ffffff;
}

.text-center p {
  color: #cccccc;
}

.close {
  color: #ffffff;
  opacity: 1;
}

.close:hover {
  color: #ffffff;
  opacity: 0.75;
}
#drawCanvas {
  /* Initially, drawing is disabled */
  touch-action: none;
}

/* Quad view layout */
.quad-view {
  width: 100%;
  height: 100%;
}

.quad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
}

.quad-cell {
  position: relative;
  background-color: #000;
  overflow: hidden;
  border-radius: 8px;
}

.quad-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.quad-label {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
  pointer-events: none;
}

/* Frame step buttons */
.frame-step-btn {
  min-width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.frame-slider-inner {
  width: 100%;
}