@import 'mirotone/styles.css';

:root{
  --primary-color: #406bef;
  --secondary-color: #2a4ebd;
}

body {
  overflow-y: scroll;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.button-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

h1 {
  color: #333;
  padding-bottom: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

h1:hover {
  transform: scale(1.05);
}

h2 {
  color: #333;
  padding-top: 10px;
  padding-bottom: 10px;
}

h3 {
  color: #333;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 2px solid var(--primary-color);
  border-top: 2px solid var(--primary-color);
  cursor: pointer;
  transition: transform 0.3s ease;
}
h3:hover {
  transform: scale(1.05);
}

.module-title {
  border-bottom: 2px solid var(--primary-color);
}

.brand-title {
  border-top: 2px solid var(--primary-color);
}

.cluster-title {
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  resize: none;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  background-color: #f9f9f9;
}

textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

select, input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Login styles */
.login-container {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 350px;
}

body.login-page {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-container .form-group {
  margin-bottom: 15px;
}

.login-container label {
  display: block;
  margin-bottom: 5px;
}

.login-container input[type="text"], 
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.btn:hover {
  background-color: var(--secondary-color);
}

.flash-message {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

.file-upload {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
}

.form-group input[type="file"] {
  width: 95%;
}

.button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, opacity 0.3s;
  text-align: center;
  white-space: normal;
  width: 150px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  margin: 5px;
  overflow: hidden;
}

button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.02);
}

.start-button:hover {
  background-color: var(--secondary-color);
  transform: scale(1.02);
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

#progress-container {
  width: 80%;
  background-color: white;
  border-radius: 5px;
  margin: 10px auto;
  overflow: hidden;
}

#progress-bar {
  width: 0;
  height: 20px;
  background-color: var(--primary-color);
  transition: width 0.5s ease-in-out;
}

#estimated-time {
  font-size: 14px;
  color: white;
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.form-group {
  flex: 1;
  margin-right: 10px;
}
.form-group:last-child {
  margin-right: 0;
}

#spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.transcript-container {
  margin-top: 20px;
}

.transcript-container h3 {
  margin-bottom: 10px;
}

#feedbackTranscript {
  width: calc(100% - 22px);
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
  font-size: 14px;
  resize: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
