﻿.test {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  background: #ad0404;
  background: #fd4f4f;
}

.btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  cursor: pointer;
  padding: 0;
  border: none;
  flex: 0 0 40px; 
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn .icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 24px;
  height: 24px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out, transform 0.45s ease-in-out;
  transform: scale(0.9);
  fill: #fff;
}

.btn[data-state="idle"] .icon-idle {
  opacity: 1;
  transform: scale(1);
}

.btn[data-state="playing"] .icon-pause {
  opacity: 1;
  transform: scale(1);
  animation: recordBlink 1s infinite ease-in-out;
}

.btn[data-state="pausing"] .icon-play {
  opacity: 1;
  transform: scale(1);
  animation: recordBlink 1s infinite ease-in-out;
}

.btn[data-state="stop"] .icon-stop {
  opacity: 1;
  transform: scale(1);
}

.btn[data-state="record"] .icon-record {
  opacity: 1;
  transform: scale(1);
  animation: recordBlink 1s infinite ease-in-out;
}

.btn[data-state="recstop"] .icon-recstop {
  opacity: 1;
  transform: scale(1);
}

.btn[data-state="recpause"] .icon-recpause {
  opacity: 1;
  transform: scale(1);
  animation: recordBlink 1s infinite ease-in-out;
}

.btn-file .icon {
  opacity: 1;
  transform: scale(1);
}

.btnRefresh {
  position: relative;
  width: 25px;
  height: 25px;
  background: #0b1220;
  cursor: pointer;
  padding: 0;
  border: none;
  flex: 0 0 25px; 
}
.btnRefresh .icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 23px;
  height: 23px;
  opacity: 0;
  transition: opacity 0.15s ease-in-out, transform 0.45s ease-in-out;
  transform: scale(0.9);
  fill: #acabab;
}

@keyframes recordBlink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

