/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #F5F5F5; /* Default Light Mode Background */
  color: #212121; /* Default Text Color for Light Mode */
  transition: all 0.3s ease;
}

.dark-mode {
  background-color: #121212; /* Dark Mode Background */
  color: #E0E0E0; /* Text Color for Dark Mode */
}

/* App Container */
.app {
  display: flex;
  width: 80%;
  height: 80%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styles */
.sidebar {
  width: 25%;
  background-color: #00a651; /* Soft Blue */
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  cursor: pointer;
  margin: 10px 0;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.sidebar ul li:hover {
  color: #FF9800; /* Vibrant Orange on Hover */
}

/* Main Content Styles */
main {
  flex: 1;
  padding: 30px;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dark-mode main {
  background-color: #1E1E1E; /* Dark Mode Background for Main */
}

/* Header */
h1 {
  font-size: 32px;
  color: #212121;
  margin-bottom: 20px;
}

.dark-mode h1 {
  color: #E0E0E0; /* Dark Mode Text Color */
}

/* Controls */
.controls button {
  background-color: #00a651; /* Soft Blue */
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.controls button:disabled {
  background-color: #B0BEC5; /* Disabled State */
  cursor: not-allowed;
}

.controls button:hover:not(:disabled) {
  background-color: #FF9800; /* Vibrant Orange Hover */
}

/* Transcription Area */
#transcription-output {
  margin-top: 20px;
  padding: 15px;
  background-color: #F0F0F0;
  border-radius: 5px;
  min-height: 100px;
  color: #212121;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dark-mode #transcription-output {
  background-color: #333333; /* Dark Mode Background */
  color: #E0E0E0; /* Text Color for Dark Mode */
}

/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #FFFFFF;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 50%;
  text-align: center;
}

.dark-mode .modal-content {
  background-color: #333333;
  color: #E0E0E0; /* Text Color for Modal in Dark Mode */
}

.modal-content button {
  margin: 10px;
  padding: 10px 20px;
  background-color: #00a651; /* Soft Blue */
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-content button:hover {
  background-color: #FF9800; /* Vibrant Orange on Hover */
}

/* Library Styles */
#audio-library {
  list-style: none;
  padding: 0;
  color: #00a651;
}

#audio-library li {
  cursor: pointer;
  padding: 10px;
  margin: 5px 0;
  background-color: #000000;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#audio-library li:hover {
  background-color: #00a651; /* Soft Blue */
  color: #FFFFFF;
}

.dark-mode #audio-library li {
  background-color: #2C2C2C; /* Dark Mode Library Item Background */
}

.dark-mode #audio-library li:hover {
  background-color: #FF9800; /* Vibrant Orange on Hover for Dark Mode */
}