#preview {
  width: 640px;
  height: 360px;
  background: black;
  margin-bottom: 10px;
}

button {
  background-color: #0073aa;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

button:hover:not(:disabled) {
  background-color: #005f8d;
}

button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
  opacity: 0.6;
}

.uvr-status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: red;
  margin-right: 6px;
}

.modal_v {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content_v {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}
div#myModal_v {
    width: 100%;
    max-width: 100%!important;
}

.vaf-loader {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  padding-top: 20%;
}

.vaf-spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*fixing the width of video 16-7-2025*/

/* Wrapper Layout */
#vaf-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Flex container */
#vaf-flex-wrapper {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 0 20px;
}

/* Shared Video Container Styling */
#vaf-question,
#vaf-recording {
  flex: 1 1 65%;
  min-width: 300px;
}

#vaf-note-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding-top: 0px; /* To balance out the missing label height in the left column */
}

/* Question Video */
#vaf-question-video {
  width: 100%;
  height: 410px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 12px;
  background-color: #000;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Recording Video */
#vaf-preview {
  width: 100%;
  height: 410px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background-color: #000;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Wrapper for recording video & overlay */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Recording Status Overlay */
#vaf-record-status {
  position: absolute;
  top: 10px;
  left: 15px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 5;
}

/* Recording Buttons */
.vaf-controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 12px auto 0;
}

#vaf-start,
#vaf-stop {
  padding: 10px 18px;
  font-size: 15px;
  background-color: #0073aa;
  border: none;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#vaf-start:hover,
#vaf-stop:hover {
  background-color: #005f8c;
}

/* Notes Styling */
#vaf-note-wrapper {
  width: 100%;
  margin-top: 0px;
}

#vaf-user-note {
  flex-grow: 1;
  min-height: 410px; /* Match the video height */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fafafa;
}

/* Responsive Tweaks */
@media screen and (max-width: 768px) {
  #vaf-flex-wrapper {
    flex-direction: column;
  }

  #vaf-question,
  #vaf-recording {
    flex: 2 1 0%;
  }
  #vaf-note-wrapper {
    flex: 1 1 0%;
  }

  #vaf-user-note {
    min-height: 240px;
  }
}

/* Optional: Smooth video corners */
.video-wrapper video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}