
/* NUJIZ VOICE RECORDER PREMIUM V1 */
body[data-audio-tool="recorder"] .voice-recorder-wrap {
  max-width:1050px;
  margin:28px auto 55px;
  padding:0 16px;
}

body[data-audio-tool="recorder"] .voice-recorder-card {
  background:linear-gradient(145deg,#1b2231,#111827) !important;
  color:#f8fafc !important;
  border:1px solid #37425c !important;
  border-radius:24px;
  padding:30px;
  box-shadow:0 20px 55px rgba(0,0,0,.3);
}

body[data-audio-tool="recorder"] .voice-recorder-head {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}

body[data-audio-tool="recorder"] .voice-recorder-head h2 {
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:clamp(22px,3vw,30px);
  font-weight:900;
}

body[data-audio-tool="recorder"] .voice-recorder-head p {
  color:#cbd5e1 !important;
  -webkit-text-fill-color:#cbd5e1 !important;
  opacity:1 !important;
  line-height:1.8;
}

body[data-audio-tool="recorder"] .vr-state {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:14px 0 10px;
  color:#e2e8f0;
  font-weight:800;
}

body[data-audio-tool="recorder"] .vr-dot {
  width:11px;
  height:11px;
  border-radius:50%;
  background:#94a3b8;
}

body[data-audio-tool="recorder"] [data-recorder-state="recording"] .vr-dot {
  background:#ef4444;
  box-shadow:0 0 0 0 rgba(239,68,68,.6);
  animation:vrPulse 1.4s infinite;
}

body[data-audio-tool="recorder"] [data-recorder-state="paused"] .vr-dot {
  background:#fbbf24;
}

body[data-audio-tool="recorder"] [data-recorder-state="finished"] .vr-dot {
  background:#4ade80;
}

body[data-audio-tool="recorder"] .voice-recorder-timer {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100px;
  margin:10px 0 0;
  border:1px solid #44516e !important;
  border-bottom:0 !important;
  border-radius:18px 18px 0 0;
  background:#202a3d !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:clamp(32px,6vw,48px);
  font-weight:900;
  font-variant-numeric:tabular-nums;
  letter-spacing:2px;
  direction:ltr;
}

body[data-audio-tool="recorder"] .vr-wave {
  display:block;
  width:100%;
  height:100px;
  margin-bottom:20px;
  border:1px solid #44516e;
  border-top:0;
  border-radius:0 0 18px 18px;
  background:#202a3d;
}

body[data-audio-tool="recorder"] .voice-recorder-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

body[data-audio-tool="recorder"] .voice-recorder-actions button {
  flex:1 1 180px;
  min-height:56px;
  border-radius:13px;
  padding:12px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
}

body[data-audio-tool="recorder"] .voice-recorder-start {
  background:linear-gradient(90deg,#7c3aed,#db2777) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body[data-audio-tool="recorder"] .voice-recorder-stop {
  background:#b91c1c !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body[data-audio-tool="recorder"] .vr-secondary {
  background:#334155;
  border:1px solid #64748b;
  color:#fff;
}

body[data-audio-tool="recorder"] .voice-recorder-actions button[hidden],
body[data-audio-tool="recorder"] .vr-retry[hidden],
body[data-audio-tool="recorder"] #recordingResult[hidden] {
  display:none !important;
}

body[data-audio-tool="recorder"] .voice-recorder-status {
  color:#e2e8f0 !important;
  -webkit-text-fill-color:#e2e8f0 !important;
  line-height:1.7;
}

body[data-audio-tool="recorder"] .voice-recorder-result {
  border-top:1px solid #45516a !important;
  padding-top:20px;
  margin-top:20px;
}

body[data-audio-tool="recorder"] #recordingPlayer {
  display:block;
  width:100%;
  margin-bottom:15px;
  color-scheme:light;
}

body[data-audio-tool="recorder"] .voice-recorder-download,
body[data-audio-tool="recorder"] .vr-retry {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:12px 20px;
  border-radius:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  margin:4px;
}

body[data-audio-tool="recorder"] .voice-recorder-download {
  background:linear-gradient(90deg,#7c3aed,#db2777);
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

body[data-audio-tool="recorder"] .vr-retry {
  border:1px solid #64748b;
  background:#273247;
  color:#fff;
}

body[data-audio-tool="recorder"] .vr-hint {
  margin:22px 0 0;
  text-align:center;
  font-size:13px;
  line-height:1.8;
  color:#cbd5e1 !important;
  -webkit-text-fill-color:#cbd5e1 !important;
}

@keyframes vrPulse {
  70% {box-shadow:0 0 0 13px rgba(239,68,68,0)}
  100% {box-shadow:0 0 0 0 rgba(239,68,68,0)}
}

@media(max-width:600px) {
  body[data-audio-tool="recorder"] .voice-recorder-card {
    padding:18px 14px;
  }
  body[data-audio-tool="recorder"] .voice-recorder-actions {
    flex-direction:column;
  }
  body[data-audio-tool="recorder"] .voice-recorder-actions button {
    flex:0 0 auto;
    width:100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  body[data-audio-tool="recorder"] .vr-dot {
    animation:none !important;
  }
}


/* NUJIZ RECORDER CONTRAST FIX V2 */

/* Recording state text */
.voice-recorder-card .vr-state,
.voice-recorder-card .vr-state-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}

/* New recording button */
.voice-recorder-card #recordRetry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        110deg, #7c3aed, #a855f7
    ) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #c4b5fd !important;
    opacity: 1 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    min-height: 52px;
    padding: 12px 25px;
    box-shadow: 0 6px 20px rgba(124,58,237,.25);
    cursor: pointer;
}

.voice-recorder-card #recordRetry:hover {
    filter: brightness(1.12);
}

.voice-recorder-card #recordRetry[hidden] {
    display: none !important;
}

/* Download button */
.voice-recorder-card #recordingDownload {
    background: linear-gradient(
        110deg, #7c3aed, #db2777
    ) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 0 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    box-shadow: 0 6px 20px rgba(124,58,237,.22);
}


/* NUJIZ RECORDER BUTTONS V3 */

/* Pause / Resume */
body[data-audio-tool="recorder"]
.voice-recorder-card #recordPause:not([hidden]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        110deg, #c2410c, #ea580c
    ) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #fb923c !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    cursor: pointer;
}

/* Finish recording */
body[data-audio-tool="recorder"]
.voice-recorder-card #recordStop:not([hidden]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        110deg, #b91c1c, #dc2626
    ) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #f87171 !important;
    opacity: 1 !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    cursor: pointer;
}

/* Preserve hidden button states */
body[data-audio-tool="recorder"]
.voice-recorder-card #recordPause[hidden],
body[data-audio-tool="recorder"]
.voice-recorder-card #recordStop[hidden] {
    display: none !important;
}

/* Button hover */
body[data-audio-tool="recorder"]
.voice-recorder-card #recordPause:not([hidden]):hover,
body[data-audio-tool="recorder"]
.voice-recorder-card #recordStop:not([hidden]):hover {
    filter: brightness(1.12);
}
