body {
  background-color: #333;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.container {
   flex: 1;
   max-width: 90%;
   margin: 0 auto;
   padding-bottom: 50px;
   /* Height of the footer */
}

@media (max-width: 900px) {
  .container {
    max-width: 100%;
    margin: 0 5px;
  }
}

h1 {
   font-size: 24px;
}

table {
   width: 100%;
   margin-top: 100px;
   border-collapse: separate;
   border-spacing: 0 10px;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #444;
}

th {
  background-color: #444;
  color: #fff;
}

.upload-container {
  margin-top: 50px;
  margin-bottom: 50px;
  width: 100%;
  text-align: center;
}

.upload-box {
  border: 2px dashed #666;
  padding: 50px;
  margin-top: 50px;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  vertical-align: middle;
}

.upload-box.dragover {
  border-color: #fff;
}

input[type="file"] {
  display: none;
}

label {
  display: block;
  background-color: #444;
  color: #fff;
  padding: 10px;
  cursor: pointer;
}

.footer {
  padding: 10px;
  background-color: #222;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

.github-link {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}

button {
  background-color: #444;
  color: #fff;
  padding: 10px 20px;
  border: medium;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.code-container {
  display: inline-block;
  white-space: nowrap;
  margin-top: 40px;
  text-align: left;
  vertical-align: middle;
}

.code-line {
  display: flex;
  width: 100%;
  overflow-x: hidden;
}

.code-container pre {
  background-color: #444;
  color: #fff;
  padding: 10px;
  margin: 0;
  display: inline-block;
  width: 100%;
  white-space: pre-wrap;
}

.code-container button {
  margin-top: 0;
  padding: 10px;
  margin: 10px;
}

.pastebin {
  width: 100%;
  margin-right: 10px;
  padding-top: 30px;
  border-top: 1px solid #444;
  margin-top: 50px;
}

#code-input {
  width: 100%;
  height: 500px;
  margin-bottom: 10px;
  font-family: monospace;
  font-size: 14px;
  background-color: #444;
  color: #fff;
  resize: vertical;
  box-sizing: border-box;
}

label,
select {
  display: inline-block;
  vertical-align: middle;
  background-color: #444;
  color: #fff;
}

div.pastebin select {
  margin-right: 10px;
  padding: 10px;
  font-size: 13px;
}

div.language-picker {
  margin-bottom: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
}

div.language-picker label {
  margin: 0;
  font-weight: bold;
  white-space: nowrap;
}

div.language-picker .select2-container {
  width: 300px !important;
}

.pastebin-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.pastebin-controls button {
  margin: 0;
}

select,
button {
  margin-right: 10px;
  padding: 10px;
  font-size: 17px;
}


/* Change the appearence of the bakground colour surrounding the search input field */
.select2-search {
  background-color: #444 !important;
}

/* Change the appearence of the search input field */
.select2-search input {
  color: #ffffff !important;
  background-color: #444 !important;
  height: 40px !important;
}

/* Change the appearence of the search results container */
.select2-results {
  background-color: #444 !important;
}

/* Change color of overlay when dropdown is opened */
.select2-container--bootstrap-5 .select2-dropdown {
  background-color: #444 !important;
}

/* Change the appearence of the dropdown select container */
.select2-container--bootstrap-5 .select2-selection {
  border-color: #6c757d !important;
  color: #ffffff !important;
  background-color: #222 !important;
}

/* Change the caret down arrow symbol to white */
.select2-container--bootstrap-5 .select2-selection--single {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

.select2-container--default .select2-results>.select2-results__options {
  scrollbar-color: #444 #333;
}

.select2-selection {
  overflow: hidden;
}

.select2-selection__rendered[title] {
  color: #ffffff !important;
  background-color: #4d4d4d;
}

/* Tab styling */
.tabs {
  margin-top: 30px;
}

.tab-buttons {
   text-align: center;
   border-bottom: 2px solid #444;
   margin-bottom: 20px;
}

.tab-button {
   background-color: #222;
   border: none;
   padding: 15px 25px;
   cursor: pointer;
   color: #ccc;
   font-size: 16px;
   border-radius: 0;
   margin: 0;
   display: inline-block;
   width: 150px;
   transition: all 0.3s ease;
   border-bottom: 3px solid transparent;
}

.tab-button:hover {
  background-color: #333;
  color: #fff;
}

.tab-button.active {
  background-color: #444;
  color: #fff;
  border-bottom: 3px solid #666;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Adjust existing sections for tabs */
.pastebin {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.voice-recorder {
  text-align: center;
  padding-top: 20px;
}

.recorder-controls {
  margin-bottom: 20px;
}

.recorder-controls button {
  margin: 0 10px;
}

#recording-time {
  display: inline-block;
  margin-left: 20px;
  font-family: monospace;
  font-size: 18px;
  color: #ccc;
}

/* Upload progress styling */
.upload-progress {
  background-color: #444;
  color: #fff;
  padding: 50px;
  border: 2px dashed #666;
  border-radius: 5px;
  text-align: center;
  font-size: 18px;
  margin-top: 50px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

/* File staging area styling */
#staging-area {
  background-color: #222;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  text-align: left;
}

#staging-area h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
  font-size: 18px;
}

.staged-files {
  margin-bottom: 20px;
}

.staged-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 10px 15px;
  margin-bottom: 8px;
  transition: background-color 0.2s;
}

.staged-file-item:hover {
  background-color: #3a3a3a;
}

.file-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.file-info i {
  color: #888;
  margin-right: 10px;
  width: 16px;
}

.file-thumb {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
  background-color: #222;
  flex-shrink: 0;
}

.file-name {
  color: #fff;
  margin-right: 10px;
  word-break: break-all;
  flex-grow: 1;
}

.file-size {
  color: #aaa;
  font-size: 12px;
  margin-right: 15px;
  white-space: nowrap;
}

.remove-file-btn {
  background-color: #dc3545;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 5px 8px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.remove-file-btn:hover {
  background-color: #c82333;
}

.upload-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.upload-controls button {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.upload-controls button:focus-visible {
  outline: 2px solid #4CAF50;
  outline-offset: 2px;
}

#upload-all-btn {
  background-color: #28a745;
  color: #fff;
}

#upload-all-btn:hover:not(:disabled) {
  background-color: #218838;
}

#upload-all-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

#clear-files-btn {
  background-color: #6c757d;
  color: #fff;
}

#clear-files-btn:hover {
  background-color: #5a6268;
}

/* Audio staging specific styles */
#audio-staging-area {
  background-color: #222;
  border: 2px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin-top: 30px;
  text-align: left;
}

#audio-staging-area h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
  font-size: 18px;
}

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

.audio-controls audio {
  flex-shrink: 0;
}


#upload-all-audio-btn {
  background-color: #17a2b8;
  color: #fff;
}

#upload-all-audio-btn:hover:not(:disabled) {
  background-color: #138496;
}

#upload-all-audio-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

#clear-audio-btn {
  background-color: #6c757d;
  color: #fff;
}

#clear-audio-btn:hover {
  background-color: #5a6268;
}
