/* ===== OSNOVNI STIL ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f7fa;
  margin: 0;
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* ===== GUMBI ===== */
button {
  font-size: 16px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:active {
  transform: scale(0.97);
}

#uploadBtn {
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
}

#readBtn {
  background-color: #28a745;
  color: white;
}

#readBtn:disabled {
  background-color: #a0d8a0;
  cursor: not-allowed;
}

#stopBtn {
  background-color: #dc3545;
  color: white;
}

#stopBtn:disabled {
  background-color: #e09aa7;
  cursor: not-allowed;
}

#continueBtn {
  background-color: #ffc107;
  color: #333;
}

#continueBtn:disabled {
  background-color: #ffe08a;
  color: #666;
  cursor: not-allowed;
}

#checkVoicesBtn {
  background-color: #6c757d;
  color: white;
}

#voiceSelect {
  padding: 6px;
  border-radius: 6px;
  font-size: 14px;
  min-width: 200px;
  max-width: 100%;
}

/* ===== VSEBINA ===== */
#fileContentWrapper {
  position: relative;
  display: flex;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: white;
  flex-grow: 1;
  overflow: hidden;
  height: 70vh;
}

#lineButtonsContainer {
  position: relative;
  width: 30px;
  background: #fceaea;
  border-right: 1px solid #e0a0a0;
  overflow-y: auto;
  user-select: none;
}

.line-button {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  border: none;
  background: #e74c3c;
  cursor: pointer;
  opacity: 0.6;
  transition: background 0.2s, opacity 0.2s;
  border-radius: 0 4px 4px 0;
}

.line-button:hover {
  background: #c0392b;
  opacity: 1;
}

#fileContent {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 15px;
  color: #333;
}

/* ===== OZNAČENA STAVKA ===== */
.sentence.highlight {
  background-color: #cde4ff;
  border-radius: 4px;
  padding: 2px 4px;
}

/* ===== GUMBA STOP & NADALJUJ FIKSNA ===== */
#stopBtn, #continueBtn {
  position: fixed;
  bottom: 20px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 6px;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#stopBtn {
  right: 140px;
}

#continueBtn {
  right: 20px;
}

/* ===== SCROLLBAR (samo desktop) ===== */
#fileContent::-webkit-scrollbar {
  width: 8px;
}

#fileContent::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* ======== 📱 RESPONSIVE ZA TELEFON ======== */
@media (max-width: 600px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #voiceSelect {
    width: 100%;
  }

  #fileContentWrapper {
    flex-direction: column;
    height: 60vh;
  }

  #lineButtonsContainer {
    display: none; /* skrij gumbe ob besedilu na telefonu */
  }

  #stopBtn, #continueBtn {
    bottom: 10px;
    font-size: 14px;
    padding: 8px 14px;
  }

  #stopBtn {
    right: 120px;
  }

  #continueBtn {
    right: 10px;
  }

  #fileContent {
    font-size: 16px;
    padding: 12px;
  }
}
.word {
  cursor: pointer;
  transition: background-color 0.2s;
}



#sentenceNumberInput {
  font-size: 16px;
  margin-left: 5px;
}
#goToSentenceBtn {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 5px;
}
#goToSentenceBtn:active {
  transform: scale(0.97);
}
