body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f2f2f7;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  position: relative;
}

.burger-container {
  display: none;
  text-align: right;
  margin-bottom: 10px;
}

.burger {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  background-color: #1c2526;
  padding: 5px 10px;
  border-radius: 5px;
  line-height: 1;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 200px;
  background-color: #fff;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1000;
}

.sidebar a {
  padding: 12px;
  margin: 5px 0;
  background-color: #007aff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  transition: background-color 0.2s;
}

.sidebar a:hover {
  background-color: #005bd1;
}

@media (max-width: 768px) {
  .burger-container {
	display: block;
  }

  .sidebar {
	transform: translateX(-100%);
	width: 200px;
	height: 100vh;
  }

  .sidebar.active {
	transform: translateX(0);
  }

  table, th, td {
	font-size: 14px;
	padding: 8px;
  }

  td:first-child {
	white-space: normal;
  }

  .button, input[type="submit"], button, a.button {
	margin-bottom: 10px;
	width: calc(100% - 40px);
	margin-left: auto;
	margin-right: auto;
  }

  .result-content table {
	display: block;
	overflow-x: auto;
	white-space: nowrap;
	font-size: 12px;
	padding: 5px;
  }

  .result-content th, .result-content td {
	padding: 5px;
	min-width: 100px;
  }
}

h1 {
  font-size: 24px;
  color: #1c2526;
  text-align: center;
  margin-bottom: 20px;
}

input[type="text"], input[type="password"], input[type="file"], textarea, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #d1d1d6;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 16px;
}

textarea {
  resize: none;
  height: 100px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

input[type="checkbox"] {
  margin-right: 10px;
}

label {
  font-size: 16px;
  color: #333;
}

.button, input[type="submit"], button, a.button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.button:hover, input[type="submit"]:hover, button:hover, a.button:hover {
  background-color: #005bd1;
}

.progress-container {
  margin-top: 15px;
  display: none;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  background-color: #007aff;
  transition: width 0.3s ease;
}

.status {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-top: 8px;
}

.error {
  color: #ff3b30;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.error a.button {
  display: inline-block;
  padding: 8px 16px;
  margin-left: 10px;
  background-color: #007aff;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  width: auto;
}

.error a.button:hover {
  background-color: #005bd1;
}

.transcription, .result {
  background-color: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin-bottom: 20px;
}

.result {
  background-color: white;
  padding: 0;
}

.result-content {
  padding: 15px;
}

.result-content h1, .result-content h2, .result-content h3 {
  margin: 10px 0;
  color: #1c2526;
}

.result-content p {
  margin: 10px 0;
  color: #333;
}

.result-content ul, .result-content ol {
  margin: 10px 0 10px 20px;
  padding-left: 0;
  color: #333;
}

.result-content li {
  margin-bottom: 5px;
}

.result-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  border: 1px solid #d1d1d6;
}

.result-content th, .result-content td {
  padding: 8px;
  border: 1px solid #d1d1d6;
  text-align: left;
}

.result-content th {
  background-color: #f7f7f7;
  font-weight: 600;
}

.waveform-container {
  margin: 15px 0;
  display: none;
}

.waveform {
  width: 100%;
  height: 80px;
  border-radius: 10px;
  background-color: #f7f7f7;
}

.timer {
  font-size: 20px;
  font-weight: bold;
  color: #1c2526;
  text-align: center;
  margin-bottom: 15px;
  display: none;
}

.record-controls {
  margin-top: 15px;
  display: none;
  background-color: #f7f7f7;
  padding: 15px;
  border-radius: 10px;
}

.record-controls audio {
  width: 100%;
  margin-bottom: 15px;
}

.record-controls .button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.record-controls button {
  width: 45%;
  padding: 12px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.record-controls button:hover {
  transform: translateY(-1px);
}

.record-controls button:active {
  transform: translateY(0);
}

#send-record {
  background-color: #007aff;
}

#send-record:hover {
  background-color: #005bd1;
}

#cancel-record {
  background-color: #ff3b30;
}

#cancel-record:hover {
  background-color: #d32f2f;
}

.balance {
  font-size: 18px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

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

th {
  background-color: #f7f7f7;
  font-weight: 600;
}

td a {
  color: #007aff;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

.expiration-notice {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.filters select, .filters input[type="text"], .filters label {
  padding: 8px;
  font-size: 14px;
}

.filters select {
  border: 1px solid #d1d1d6;
  border-radius: 8px;
}

.filters input[type="text"] {
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  max-width: 200px;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination button {
  padding: 8px 16px;
  background-color: #007aff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pagination button:hover {
  background-color: #005bd1;
}

.pagination button:disabled {
  background-color: #d1d1d6;
  cursor: not-allowed;
}

.found {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 15px;
}

.hidden {
  display: none;
}

.user-info {
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f7f7f7;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.user-info span {
  font-size: 14px;
  color: #333;
}

.user-info a.button {
  padding: 8px;
  font-size: 14px;
}