@charset "utf-8";

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #888;
  /* width:80%; */
  max-width: 16000px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
  color: #fff;
  background-color: #a00;
  float: right;
  font-size: 26px;
  width:32px;
  height:32px;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 50%;
  opacity: 1;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.file-type-icons {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.icon-container {
  text-align: center;
}

.icon-container img {
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.file-info {
  background-color: #f0f0f0;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.file-drop-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 5px;;
  transition: background-color 0.3s ease;
}

.file-drop-area.highlight {
  background-color: #f0f0f0;
}

.file-previews {
  max-height: 70vh;
  overflow-y: auto;
  margin-bottom: 20px;
}

.file-preview {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.file-preview-image,
.file-preview-audio,
.file-preview-video {
  width: 100%;
  height: 100autopx;
  object-fit: cover;
  margin-right: 15px;
}

.file-icon {
  font-size: 3em;
  margin-right: 15px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.file-details {
  flex-grow: 1;
}

.file-name {
  font-weight: bold;
}

.file-size {
  color: #666;
  font-size: 0.9em;
}

.file-caption {
  font-style: italic;
}

.remove-file,
.edit-file {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  margin-left: 5px;
}

.file-progress-container {
  width: 100%;
  background-color: #f0f0f0;
  height: 5px;
  margin-top: 5px;
}

.file-progress-bar {
  width: 0;
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

.edit-file-section {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.edit-file-section input {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
}

.edit-buttons {
  text-align: right;
}

.upload-progress {
  width: 100%;
  background-color: #f0f0f0;
  height: 10px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.3s ease;
}

.file-count {
  text-align: right;
  margin-bottom: 10px;
}

.modal-buttons {
  text-align: right;
}

.update-button,
.reset-button,
.option-button {
  padding: 10px 20px;
  margin-left: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.update-button {
  background-color: #2196F3;
  color: white;
}

.reset-button {
  background-color: #ff9800;
  color: white;
}

.option-button {
  background-color: #4CAF50;
  color: white;
}

.option-button,
.icon-container,
.update-button,
.reset-button,
.option-buttons button {
  transition: none !important;
}

.option-button:hover,
.icon-container:hover,
.update-button:hover,
.reset-button:hover,
.option-buttons button:hover {
  opacity: 1 !important;
  background-color: #4CAF50 !important;
  color: white !important;
  transform: none !important;
  transition: none !important;
}

.recording-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
}

.waveform, .timeline {
    width: 100%;
    height: 100px;
    background-color: #f0f0f0;
    margin-bottom: 10px;
}

.recording-controls {
    display: flex;
    justify-content: space-around;
}
.recording-controls button{
  background-color: #4CAF50;
}
.recording-info {
    text-align: center;
    font-weight: bold;
}

.file-input-wrapper {
  display: inline-block;
  position: relative;
}

.file-input-overlay {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.file-input-wrapper {
  display: inline-block;
  position: relative;
}

.custom-file-button {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.file-name-display {
  margin-left: 10px;
}

.error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.error-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
}

.close-error {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.file-preview {
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.filename-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.filename-input {
  border: 1px solid #ccc;
  padding: 5px;
  margin-right: 5px;
  border-radius: 4px;
  flex-grow: 1;
}

.filename-extension {
  color: #666;
  font-size: 14px;
}

.caption-input {
  width: 100%;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.input-modified {
  border-color: #007bff;
}

.accordion-header {
  display: block; /* Change from flex to block */
  width: 100%;
  padding: 15px;
  cursor: pointer;
}

.accordion-content {
  display: block;
  padding: 15px;
  width: 100%;
  border-top: 1px solid #eee; /* Optional: adds separation between header and content */
}

.file-preview {
  display: block; /* Change from flex to block */
  width: 100%;
  margin-bottom: 15px;
}

/* Maintain horizontal alignment for elements within the header */
.accordion-header {
  display: flex;
  align-items: center;
}

.toggle-icon, .file-name, .file-size {
  /* Keep these as they are */
  margin-right: 10px;
}

.file-name, .file-size {
  margin-right: 10px;
}

.toggle-icon {
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.accordion-header.active .toggle-icon {
  transform: rotate(90deg);
}

.validation-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
  z-index: 1000;
}

.input-modified {
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.filename-extension {
  color: #666;
  margin-left: 5px;
}

.recording {
  animation: pulse 1s infinite;
}

.recording-modal {
  position: fixed;
  z-index: 1001;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  max-width: 600px;
  background-color: rgba(0,0,0,0.4);
}

.recording-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.recording-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 10px;
}

.recording-indicator.active {
  background-color: #ff4444;
  animation: flash-recording 1s infinite;
}

.recording-indicator.active.video-recording {
  background-color: #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

.recording-indicator.paused {
  background-color: #ffaa00;
  animation: none;
}

.recording-preview {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.validation-message,
.error-message {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 5px;
    z-index: 1000;
}

.validation-message.show,
.error-message.show {
    display: block;
}

.error-message {
    background: rgba(255, 0, 0, 0.8);
}

.hidden {
    display: none;
}

.visible {
    display: block;
}
/* .document-download-btn, button.download-all-button{
  background-color: #000;
  transition: all 0.3s;
  display: inline-block;
}
.document-download-btn:hover, button.download-all-button:hover{
  background-color: #888;
} */
.document-icon{
  max-width: 32px;
  margin-right: 1rem;;
}
/* dialog{
  position: relative !important;
} */
.file-previews button, .file-upload-modal button{
  background-color: #000;
  transition: all 0.3s;
  display: inline-block;
}
.file-previews button:hover, .file-upload-modal button:hover{
  background-color: #888;
}
@keyframes flash-recording {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}


@keyframes pulse {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}

.loading-indicator {
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 10px;
  display: none; /* Hidden by default, shown during loading */
}

.loading-indicator::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #666;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*  put in file upload */

body .modal {
  resize: both;
  overflow: auto;
  /* width: 80vw; 
  height: 80vh;  */
  max-width: 98vw;
  max-height: 90vh;
  min-width: 200px;
  min-height: 200px;
  border: 1px solid #ccc;
  padding: 1rem;
  background: #333;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* body .modal {
    resize: both;
    overflow: auto;
    width: clamp(200px, 80vw, 90vw);
    height: clamp(200px, 80vh, 90vh);
    padding: 1rem;
    background: #000;
    align-items: center;
    justify-content: center;
} */

body .modal video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.recording-overlay {
    top: 0;
    position: fixed;
    background: #ddd;
    width: 100%;
}
.recording-overlay button{
    padding:5px 10px;
}