:root {
  --primary-lime: #a0d405;
  --primary-dark: #313a42;
  --primary-forest: #2c9e4b;
  --primary-lime-light: #b8e033;
  --primary-lime-dark: #8bc004;
  --primary-dark-light: #3d4751;
  --primary-forest-light: #35b558;
  --background-gradient: linear-gradient(135deg, #a0d405 0%, #2c9e4b 100%);
  --card-gradient: linear-gradient(145deg, #F4F7F9 0%, #F4F7F9 100%);
  --text-primary: #313a42;
  --text-secondary: #5a6c7d;
  --border-color: #e8f4e6;
  --shadow-primary: 0 8px 32px rgba(160, 212, 5, 0.15);
  --shadow-hover: 0 12px 40px rgba(160, 212, 5, 0.25);
}

/* Global body styling */
body {
  background: #fff;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
}

/* Main app card */
.app-card {
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: var(--shadow-primary);
  border: 2px solid rgba(160, 212, 5, 0.2);
  animation: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--background-gradient);
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Header styling */
.header {
  position: relative;
}

.title {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--background-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-align: center;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

/* Language selector */
.language-selector {
  background: linear-gradient(145deg, #f8fffe 0%, #ffffff 100%);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.language-selector:hover {
  border-color: var(--primary-lime);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(160, 212, 5, 0.1);
}

.language-label {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-icon {
  font-size: 1.2rem;
  color: var(--primary-forest);
}

.form-select {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: white;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: var(--primary-lime);
  box-shadow: 0 0 0 4px rgba(160, 212, 5, 0.1);
  outline: none;
}

/* Recording indicator */
.recording-indicator {
  padding: 1rem;
  background: linear-gradient(145deg, #fff5e6 0%, #ffffff 100%);
  border-radius: 20px;
  transition: all 0.4s ease;
  justify-content: center;
  font-weight: 600;
  color: var(--text-primary);
}

.recording-indicator.active {
  background: linear-gradient(145deg, #ffe6e6 0%, #fff0f0 100%);
  border-color: #ff6b6b;
  animation: recordingPulse 2s infinite;
}

@keyframes recordingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.3);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
}

.pulse-dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border-radius: 50%;
  animation: pulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* Recording controls */
.recording-controls {
  gap: 1.5rem !important;
}

.btn-start {
  background: var(--background-gradient) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 20px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(160, 212, 5, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-start:hover::before {
  left: 100%;
}

.btn-start:hover,
.btn-start:focus {
  background: var(--background-gradient) !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
  color: white !important;
}

.btn-start:disabled {
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

.btn-stop {
  background: linear-gradient(145deg, #ff6b6b, #ff5252) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 20px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-stop:hover,
.btn-stop:focus {
  background: linear-gradient(145deg, #ff5252, #ff4444) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
  color: white !important;
}

.btn-stop:disabled,
.btn-clear:disabled {
  opacity: 0.5;
  transform: none !important;
}
.btn-clear {
  background: linear-gradient(145deg, #ffb347, #ff9800) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 20px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(255, 152, 0, 0.3);
}

.btn-clear:hover,
.btn-clear:focus {
  background: linear-gradient(145deg, #ff9800, #f57c00) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 152, 0, 0.4);
  color: white !important;
}



/* Wave animation */
.wave-animation {
  display: none;
  padding: 1rem;
}

.wave-animation.active {
  display: flex;
  animation: waveContainer 0.5s ease-out;
}

@keyframes waveContainer {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.wave-bar {
  width: 6px;
  height: 20px;
  background: var(--background-gradient);
  border-radius: 3px;
  animation: wave 1.2s infinite ease-in-out;
  margin: 0 2px;
  box-shadow: 0 2px 8px rgba(160, 212, 5, 0.3);
}

.wave-bar:nth-child(1) {
  animation-delay: 0s;
}
.wave-bar:nth-child(2) {
  animation-delay: 0.1s;
}
.wave-bar:nth-child(3) {
  animation-delay: 0.2s;
}
.wave-bar:nth-child(4) {
  animation-delay: 0.3s;
}
.wave-bar:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  40%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
  20% {
    transform: scaleY(2.5);
    opacity: 1;
  }
}

/* Output section */
.output-section {
  background: linear-gradient(145deg, #f8fffe 0%, #ffffff 100%);
  border-radius: 24px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
}

.output-section:hover {
  border-color: var(--primary-lime);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(160, 212, 5, 0.1);
}

.output-label {
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
}

.output-text {
  background: white;
  border-radius: 16px;
  min-height: 140px;
  line-height: 1.7;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  white-space: pre-line;
  word-wrap: break-word;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}


/* Download section */
.btn-download {
  background: var(--background-gradient) !important;
  border: none !important;
  color: white !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 20px;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 25px rgba(160, 212, 5, 0.3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-download:hover::before {
  left: 100%;
}

.btn-download:hover,
.btn-download:focus {
  background: var(--background-gradient) !important;
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-hover);
  color: white !important;
  text-decoration: none;
}

.btn-download.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Audio preview */
.audio-preview {
  background: linear-gradient(145deg, #f8fffe 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.audio-preview:hover {
  border-color: var(--primary-lime);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(160, 212, 5, 0.1);
}

#audioPlayer {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  outline: none;
}

/* Playback bar */
.playback-bar {
  width: 100%;
  height: 10px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bar-fill {
  height: 100%;
  width: 0;
  background: var(--background-gradient);
  border-radius: 6px;
  transition: width 0.2s linear;
  position: relative;
  overflow: hidden;
}

.bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Footer branding */
.footer-brand {
  margin-top: 2rem;
  padding: 1rem;
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(160, 212, 5, 0.05),
    rgba(44, 158, 75, 0.05)
  );
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.footer-brand small {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-brand a {
  color: var(--primary-lime) !important;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 2px 6px;
  border-radius: 6px;
}

.footer-brand a:hover {
  color: var(--primary-forest) !important;
  background: rgba(160, 212, 5, 0.1);
  transform: scale(1.05);
}

/* Responsive improvements */
@media (max-width: 768px) {
  .title {
    font-size: 2.2rem;
  }

  .recording-controls {
    flex-direction: column;
    gap: 1rem !important;
  }

  .btn-start,
  .btn-stop,
  .btn-clear,
  .btn-download {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .app-card {
    margin: 1rem;
    border-radius: 24px;
  }
}


.custom-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: opacity 0.5s ease;
  opacity: 1;
}

.toast-success {
  background-color: #a0d405; 
}

.toast-error {
  background-color: #dc3545; 
}

.custom-toast.fade-out {
  opacity: 0;
}


.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px); 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.loading-spinner {
  border: 6px solid rgba(0, 0, 0, 0.1);
  border-top: 6px solid #a0d405;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-dialog-content {
  background: #fff;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: scaleUp 0.3s ease-in-out;
}

.dialog-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a0d405, #28a745);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: popIn 0.4s ease-in-out;
}
.dialog-icon span {
  font-size: 32px;
  color: #fff;
  font-weight: bold;
}

.custom-dialog-content h4 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #222;
  font-weight: 600;
}

.custom-dialog-content p {
  margin-bottom: 25px;
  font-size: 15px;
  color: #555;
}

.custom-dialog-content .btn-primary {
  min-width: 160px;
  padding: 10px 18px;
  background: #a0d405;
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.custom-dialog-content .btn-primary:hover {
  background: #2c9e4b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes scaleUp {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

.countdown-display {
      background: linear-gradient(135deg, #eeffbb 0%, #abffc1 100%);
      border-radius: 20px;
      padding: 8px;
      margin: 20px 0;
      box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
      animation: pulseGlow 2s ease-in-out infinite;
    }

    .countdown-display.warning {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      animation: pulseWarning 1s ease-in-out infinite;
    }

    .countdown-content {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 15px;
      color: #313a42;
    }

    .countdown-icon {
      font-size: 2rem;
      animation: blink 1.5s ease-in-out infinite;
    }

    .countdown-display.warning .countdown-icon {
      animation: blinkFast 0.5s ease-in-out infinite;
    }

    .countdown-text {
      font-size: 1.1rem;
      font-weight: 500;
      letter-spacing: 0.5px;
    }

    .countdown-timer {
      font-size: 2.5rem;
      font-weight: 700;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      min-width: 100px;
      text-align: center;
    }

    .time-progress {
      width: 100%;
      height: 6px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 10px;
      margin-top: 15px;
      overflow: hidden;
      position: relative;
    }

    .time-progress-bar {
      height: 100%;
      background: white;
      border-radius: 10px;
      transition: width 1s linear;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    @keyframes pulseGlow {
      0%, 100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
      }
      50% {
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.6);
      }
    }

    @keyframes pulseWarning {
      0%, 100% {
        box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
      }
      50% {
        box-shadow: 0 10px 40px rgba(245, 87, 108, 0.8);
      }
    }

    @keyframes blink {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.4;
        transform: scale(0.95);
      }
    }

    @keyframes blinkFast {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
      }
      50% {
        opacity: 0.3;
        transform: scale(0.9);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
      }
    }

    .recording-indicator.active .pulse-dot {
      animation: pulse 1.5s ease-in-out infinite;
    }

    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(1.3);
        opacity: 0.7;
      }
    }

    /* ===== LOGIN DIALOG STYLES ===== */

/* Dialog container */
md-dialog[aria-label="Login"] {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  max-width: 450px;
  border: 2px solid rgba(160, 212, 5, 0.2);
}

/* Toolbar/Header */
md-dialog md-toolbar {
  background: var(--background-gradient);
  color: white;
  border-radius: 0;
}

md-dialog .md-toolbar-tools h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

md-dialog .md-icon-button {
  color: white;
}

/* Dialog content area */
md-dialog-content {
  background: linear-gradient(145deg, #f8fffe 0%, #ffffff 100%);
  padding: 2rem;
}

md-dialog-content .md-dialog-content {
  padding: 0;
}

/* Login header with icon */
.login-header {
  text-align: center;
  margin-bottom: 30px;
  animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.privacy-icon {
  width: 80px;
  height: 80px;
  animation: popIn 0.5s ease-in-out;
}

/* Input containers */
md-input-container.md-block {
  margin: 25px 0;
  position: relative;
}

md-input-container label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

md-input-container input {
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: white;
  transition: all 0.3s ease;
  width: 100%;
}

md-input-container input:focus {
  border-color: var(--primary-lime);
  box-shadow: 0 0 0 4px rgba(160, 212, 5, 0.1);
  outline: none;
}

md-input-container input:hover {
  border-color: var(--primary-lime-light);
}

/* Password visibility icon */
.md-input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 20px;
}

.md-input-icon:hover {
  color: var(--primary-lime);
  transform: translateY(-50%) scale(1.1);
}

/* Error message */
.error-message {
  color: #ff5252;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 15px;
  padding: 10px 15px;
  background: linear-gradient(145deg, #ffe6e6 0%, #fff0f0 100%);
  border-radius: 12px;
  border-left: 4px solid #ff5252;
  animation: slideIn 0.3s ease;
}

/* Loading indicator */
md-dialog-content img[src*="loading"] {
  width: 35px;
  margin: 15px auto;
  display: block;
}

/* Dialog actions/buttons */
md-dialog-actions {
  background: white;
  padding: 20px 30px;
  border-top: 2px solid var(--border-color);
}

md-dialog-actions md-button {
  min-width: 100px;
  padding: 12px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-transform: none;
}

/* Cancel button */
md-dialog-actions md-button:not(.md-primary) {
  color: var(--text-secondary);
  background: transparent;
}

md-dialog-actions md-button:not(.md-primary):hover {
  background: rgba(160, 212, 5, 0.1);
  color: var(--primary-dark);
}

/* Login/Primary button */
md-dialog-actions md-button.md-raised.md-primary {
  background: var(--background-gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(160, 212, 5, 0.3);
}

md-dialog-actions md-button.md-raised.md-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

md-dialog-actions md-button.md-raised.md-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ===== OTP DIALOG STYLES ===== */

md-dialog[aria-label="Enter OTP"] {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-primary);
  max-width: 400px;
  background: linear-gradient(145deg, #f8fffe 0%, #ffffff 100%);
  border: 2px solid rgba(160, 212, 5, 0.2);
}

md-dialog[aria-label="Enter OTP"] md-dialog-content {
  padding: 40px 30px;
  min-height: 200px;
}

md-dialog[aria-label="Enter OTP"] h2 {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--background-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

/* OTP input field */
md-dialog[aria-label="Enter OTP"] input[type="text"] {
  border: 3px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  background: white;
  letter-spacing: 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(160, 212, 5, 0.1);
}

md-dialog[aria-label="Enter OTP"] input[type="text"]:focus {
  border-color: var(--primary-lime);
  box-shadow: 0 0 0 4px rgba(160, 212, 5, 0.15);
  outline: none;
  transform: scale(1.02);
}

md-dialog[aria-label="Enter OTP"] input[type="text"]:hover {
  border-color: var(--primary-lime-light);
}

/* Individual OTP boxes (if using separate inputs) */
md-dialog[aria-label="Enter OTP"] input[type="number"] {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  background: white;
  text-align: center;
  transition: all 0.3s ease;
}

md-dialog[aria-label="Enter OTP"] input[type="number"]:focus {
  border-color: var(--primary-lime);
  box-shadow: 0 0 0 3px rgba(160, 212, 5, 0.15);
  outline: none;
  transform: scale(1.05);
}

/* OTP Error message */
md-dialog[aria-label="Enter OTP"] .error-message {
  color: #ff5252;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 20px;
  padding: 10px 15px;
  background: linear-gradient(145deg, #ffe6e6 0%, #fff0f0 100%);
  border-radius: 12px;
  border-left: 4px solid #ff5252;
  animation: slideIn 0.3s ease;
}

/* OTP Dialog actions */
md-dialog[aria-label="Enter OTP"] md-dialog-actions {
  background: white;
  padding: 20px 30px;
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

/* Verify OTP button */
md-dialog[aria-label="Enter OTP"] .btn-body.sec-button {
  background: var(--background-gradient);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 20px rgba(160, 212, 5, 0.3);
  text-transform: none;
}

md-dialog[aria-label="Enter OTP"] .btn-body.sec-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-hover);
}

md-dialog[aria-label="Enter OTP"] .btn-body.sec-button:active {
  transform: translateY(-1px) scale(1.02);
}

/* OTP Loading spinner */
md-dialog[aria-label="Enter OTP"] img[src*="loading"] {
  width: 35px;
  height: 35px;
}


/* ===== SHARED ANIMATIONS ===== */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}


/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 768px) {
  md-dialog[aria-label="Login"],
  md-dialog[aria-label="Enter OTP"] {
    max-width: 90%;
    margin: 20px;
  }

  md-dialog-content {
    padding: 1.5rem;
  }

  md-dialog-actions {
    flex-direction: column;
    gap: 10px;
  }

  md-dialog-actions md-button {
    width: 100%;
  }

  .privacy-icon {
    width: 60px;
    height: 60px;
  }

  md-dialog[aria-label="Enter OTP"] input[type="text"] {
    font-size: 20px;
    letter-spacing: 10px;
    width: 120px;
  }
}