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

.modal-content {
  display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 0.5rem;
    border: 2px solid #daeaf3;
    border-radius: 1rem;
    width: 1300px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow-y: auto;
  gap: 0.5rem;
  scrollbar-color: #222 #fff;
  scrollbar-width: auto;
}

#modal-content {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.5rem;
}

#bar-adon-picture {
  display: flex;
position: relative;
  flex-direction: column;
  min-width: 223px;
  max-width: 223px;
  min-height: 100%;
  border-radius: 0.5rem;
}

#picture-container img{
  border-radius: 10px;
  max-height: inherit;
}

#picture-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 223px;
  max-height: 223px;
  border-top-right-radius: 0.5rem;
  border-top-left-radius: 0.5rem;
  background-position: 50%;
  aspect-ratio: 1 / 1;
}

#bar-adon-picture .desktop-banner {
  width: 100%;
  height: inherit;
  object-fit: cover;
  border-radius: 10px;
}

#bar-adon-picture .mobile-banner{ 
  display: none;
}

#picture-information {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #fff;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  height: 100%;
  height: -webkit-fill-available;
  width: -webkit-fill-available;
  width: -moz-available;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

#picture-information p {
  font-size: 14px;
}
#modal-pdf {
  width: -webkit-fill-available;
  width: -moz-available;
  height: 600px;
  -webkit-overflow-scrolling: touch;
}

#audio-player {
  width: 100%;
  width: -webkit-fill-available;
  width: -moz-available;
  max-width: 100%;
  height: 50px;
  background-color: #f5f5f5;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
}

#pdf-viewer {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
}

.modal-header h2, .modal-header h4{
  font-weight: bold;
}

#modal-title-simul{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
      padding-top: 1.5rem;

}

#modal-title-simul button{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #0F536C;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

#modal-title-simul button h4{
  color: #fff;
  font-weight: bold;
}

.close-modal {
  position:absolute;
  color: #aaa;
  left: 0;
  top: 0; 
  margin-left: 1rem;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: black;
}

.preloader-wrapper {
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader {
  width: 48px;
  height: 48px;
  background-image: url("../../images/preloader.gif");
  background-size: cover;
  background-repeat: no-repeat;
}

.audio-custom-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-left: 10px;
  height: 50px;
  align-items: center;
}

.audio-control-button {
  padding: 0.5rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-control-button:hover {
  background: #e5e5e5;
}

#modal-audio {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #f5f5f5;
  height: 50px;
  border-radius: 50px;
  max-width: -webkit-fill-available;
  max-width: -moz-available;
}

#modal-pdf object {
  display: block; /* Prevents unwanted spacing */
  margin: 0 auto; /* Centers the object */
  width: fit-content;
}

#modal-pdf .pdf-mobile-button {
  display: none;
  width: 100%;
  padding: 12px;
  background-color: #d22830;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

#modal-pdf.mobile-view {
  height: auto;
}

#modal-pdf.mobile-view #pdf-viewer {
  display: none;
}

#modal-pdf.mobile-view .pdf-mobile-button {
  display: block;
}

.report-link{
    max-width: 100%;
  width: 100%;
  color: #fff !important;
}

.report-button{
  display: flex;
justify-content: center;
align-items: center;
gap: 0.25rem;
align-self: stretch;
border-radius: 0.5rem;
border: 1px solid #FFC300;
background: rgba(0, 0, 0, 0.40);
padding: 0.25rem;
width: 100%;

}

.report-button h3 {
  padding: 0;
  color: #fff;
  text-decoration: none;
}

.custom-audio-player {
  width: 100%;
    max-height: 50px;
    height: 100%;
    border-radius: 50px;
    padding: 0.35rem;
    background: #f5f5f5;
}

.player-controls {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 15px;
}

.player-controls button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #333;
  transition: color 0.2s;
}

.player-controls button:hover {
  color: #666;
}

.progress-bar-container {
  flex-grow: 1;
  margin: 0 10px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  background: #ddd;
  border-radius: 2.5px;
  outline: none;
}

.progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  background: #333;
  border-radius: 50%;
  cursor: pointer;
}

.time-display {
  font-family: monospace;
  font-size: 14px;
  color: #666;
}

.time {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  align-items: center;
}

.buttons {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.buttons svg{
  min-width: 20px;
}

.playback-speed {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 1rem;
  background: white;
  cursor: pointer;
}

.controls {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}

/* Interviewee Navigation Styles */
.interviewee-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 83, 108, 0.2);
  margin-bottom: -1px;
  z-index: 10;
  position: relative;
}

.interviewee-nav-btn {
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
      color: #fff;
    background-color: transparent;
}

.interviewee-nav-btn svg {
  min-width: 16px;
}

.interviewee-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.interviewee-indicator {
  font-weight: bold;
  color: #0F536C;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

/* Mobile Info Toggle Button */
.mobile-info-toggle {
  display: none;
  width: 100%;
}

.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  background-color: #0F536C;
  border-radius: 1rem;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.mobile-toggle-btn span {
  font-size: 1rem;
}

.toggle-chevron {
  transition: transform 0.3s ease;
}

.mobile-toggle-btn.active .toggle-chevron {
  transform: rotate(180deg);
}

/* Info Container */
.info-container {
  display: flex;
  flex-direction: column;
  min-width: 223px;
  max-width: 223px;
  min-height: 100%;
  border-radius: 0.5rem;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  border-radius: 0.5rem 0.5rem 0 0;
  background-color: #fff;
  overflow: hidden;
  border: 1px solid #0F536C;
}

.tab-btn {
  flex: 1;
 padding: 0.25rem 0.5rem;
  background-color: #fff;
  border:none; 
  color: #0F536C;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:first-child {
  border-radius: 0.5rem 0 0 0;
}

.tab-btn:last-child {
  border-radius: 0 0.5rem 0 0;
}

.tab-btn.active {
  background-color: #0F536C;
  color: white;
}

.tab-btn:hover:not(.active) {
  background-color: #B1D4E1;
}

/* Tab Content */
.tab-content {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.tab-panel {
  display: none;
  height: 100%;
  width: 100%;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
}

/* Interviewee Tab (maintains existing styles) */
#interviewee-tab {
  position: relative;
  border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

#interviewee-tab #picture-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 223px;
  max-width: 223px;
  max-height: 223px;
  border-top-right-radius: 0;
  border-top-left-radius: 0;
  background-position: 50%;
  aspect-ratio: 1 / 1;
}

#interviewee-tab #picture-information {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  color: #fff;
  border-bottom-right-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  height: 100%;
  height: -webkit-fill-available;
  width: -webkit-fill-available;
  width: -moz-available;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.2) 80%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* Recording Tab */
#recording-tab {
  padding: 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
}

.recording-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  font-weight: bold;
  color: #fff;
  font-size: 0.9rem;
}

.detail-value {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 1.2rem;
}

.detail-value:empty::after {
  content: "לא זמין";
  color: #999;
  font-style: italic;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-info-toggle {
    display: block;
  }

  .info-container {
    display: none;
    max-width: none;
    width: 100%;
    margin-top: 0.5rem;
  }

  .info-container.show {
    display: flex;
  }

  .tab-navigation {
    border-radius: 1rem 1rem 0 0;
  }

  .tab-btn {
    padding: 1rem;
    font-size: 1rem;
  }

  .tab-btn:first-child {
    border-radius: 1rem 0 0 0;
  }

  .tab-btn:last-child {
    border-radius: 0 1rem 0 0;
  }

  .interviewee-navigation {
    margin-bottom: 0;
  }

  #interviewee-tab #picture-container {
    max-width: none;
    max-height: none;
    height: 250px;
    border-radius: 0;
  }

  #interviewee-tab #picture-information {
    margin-top: -1px;
    padding: 1rem;
    width: 100%;
    height: auto;
    border-radius: 0 0 1rem 1rem;
  }

  #recording-tab {
    border-radius: 0 0 1rem 1rem;
    padding: 1.5rem;
  }

  .recording-details {
    gap: 1.5rem;
  }

  .detail-item {
    gap: 0.5rem;
  }

  .detail-label {
    font-size: 1rem;
  }

  .detail-value {
    font-size: 1rem;
  }
}

.progress-bar{
  direction: ltr;
}

@media (max-width: 768px) {
  .player-controls .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .playback-speed {
    order: 1;
  }
  
  .buttons {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    margin-left: -78px;
  }

  .progress-bar-container {
    width: 55%;
  }
}

/* Desktop: Hide mobile toggle */
@media (min-width: 768px) {
  .mobile-info-toggle {
    display: none !important;
  }

  .info-container {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .modal-content .chevron-left{
    width: unset;
  }

  .modal-content .chevron-right{
    width: unset;
  }

  #modal-audio{
    height: unset;
  }

  .custom-audio-player{
    max-height: unset;
    height: unset; 
    border-radius: 1.25rem;
  }

  .player-controls{
    flex-direction: column-reverse;
  }

  .time{ 
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
  }

  /* Modal styles */
  .modal {
    overflow: scroll;
  }
  /*TEST*/
  #modal-content {
    display: flex;
    flex-direction: column !important;
  }

  #modal-title-simul {
    display: grid !important;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

#modal-simul {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin: 0;
}

#prev-interview {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

#next-interview {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

#modal-title-simul h4 {
    margin: 0;
}

  #bar-adon-picture {
    width: 100%;
    max-width: none !important;
    align-items: center;
  }

  #picture-container{
    max-width: none !important;
    max-height: none !important;
    border-radius: 10px;
  }

  #picture-container img{
    border-radius: 10px;
    max-height: inherit;
  }


  #picture-information {
    margin-top: -1px;
    padding: 10px;
    width: 100%;
    height: auto;
  }

  .modal-content {
    width: 95%;
    overflow: auto;
    padding: 0.25rem 1rem;
    max-height: 90%;
  }

  .modal-content::-webkit-scrollbar {
    width: 10px;
  }
  .modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
  }
  
  .modal-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
    width: 20px;
    border: 10px solid #f1f1f1;
  }
  
  #pdf-viewer {
    max-height: 500px ;
    height: -webkit-fill-available;
    height: -moz-available;
  }

  #modal-pdf{
    height: 500px !important;
  }
  /* For Firefox */
  .modal-content {
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
  }

  #modal-title-simul button {
    padding: 0.5rem; 
  }
}