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

body {
  font-family: 'Noto Sans', sans-serif;
  background: #fff;
  color: #000;
  padding: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
  margin-bottom: 16px;
}

h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.btn-primary, .btn-success, .btn-cancel, .type-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #000;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
}

.btn-primary:active, .type-btn:active {
  background: #000;
  color: #fff;
}

.btn-success {
  background: #000;
  color: #fff;
}

.btn-success:active {
  background: #333;
}

.btn-cancel {
  background: #f5f5f5;
}

.btn-cancel:active {
  background: #e0e0e0;
}

#elementsList {
  margin: 16px 0;
}

.element-item {
  border: 1px solid #000;
  padding: 12px;
  margin-bottom: 12px;
}

.element-item.book-title {
  background: #f5f5f5;
  border: 2px solid #000;
}

.element-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.element-type {
  font-weight: bold;
  font-size: 16px;
  text-transform: capitalize;
}

.element-filename {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.delete-btn {
  padding: 8px 12px;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s;
}

.delete-btn:active {
  background: #f5f5f5;
}

.add-content-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #666;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  min-height: 44px;
}

.add-content-btn:active {
  background: #e0e0e0;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
}

#audioFileInput {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #000;
  font-size: 16px;
}

