:root {
  --primary-color: #4a90e2;
  --primary-color-dark: #357abd;
  --danger-color: #e74c3c;
  --danger-color-dark: #c0392b;
  --secondary-color: #f5f7fa;
  --text-color: #333;
}

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

body {
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  background: var(--secondary-color);
  color: var(--text-color);
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.box {
  width: 100%;
}

h1 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.file-upload {
  position: relative;
  margin: 3rem 0 1rem;
}

.file-upload input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-upload label {
  display: block;
  padding: 2.4rem 0;
  background: var(--secondary-color);
  border: 2px dashed #ddd;
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.3s;
}

.file-upload:hover label {
  border-color: var(--primary-color);
}

#status {
  padding: 1rem;
  background: #f0f8ff;
  border-radius: 8px;
  margin: 0.5rem 0;
  text-align: center;
}

#clearBtn {
  width: 100%;
  margin: 0.5rem auto;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(145deg, var(--danger-color), var(--danger-color-dark));
}

#clearBtn:hover {
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
}

#buttonGroup {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

button {
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

#buttonGroup>button {
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, var(--primary-color), var(--primary-color-dark));
}

#recordBtn {
  margin: 1rem auto;
  width: 6rem;
  height: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(145deg, var(--primary-color), var(--primary-color-dark));
}

#recordBtn.active {
  background: linear-gradient(145deg, var(--danger-color), var(--danger-color-dark));
}

button#recordBtn>.icon {
  font-size: 2.2rem;
}

button:hover {
  box-shadow: 0 3px 8px rgba(74, 144, 226, 0.3);
}

.hide {
  display: none !important;
}


.hash {
  font-size: 0.8rem;
  color: #acacac;
  position: fixed;
  bottom: 5px;
  right: 5px;
}