/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
  /* Slate-dark base theme */
  --color-slate-950: #090d16;
  --color-slate-900: #101726;
  --color-slate-800: #1d283c;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-200: #e2e8f0;
  
  /* ==========================================================================
     COLOR CUSTOMIZATION GUIDES
     ==========================================================================
     To change the main beacon colors (used for active speech states), adjust
     the HSL values below. HSL format is: hsl(hue, saturation%, lightness%).
     - Hue: 0-360 (the color family, e.g., 0/355 = Red, 150 = Green, 39 = Gold)
     - Saturation: 0%-100% (the color intensity / purity)
     - Lightness: 0%-100% (0% is completely black, 100% is completely white)
     
     EXAMPLE: To make the RED beacon less dark (brighter crimson/red):
     Change: hsl(355, 75%, 25%)  -->  hsl(355, 75%, 42%) (or any higher lightness %)
  ========================================================================== */

  /* Harmonious, high-contrast HSL beacon colors */
  --tm-neutral: hsl(222, 40%, 10%);     /* Calming deep blue-slate - Speech started / idle */
  --tm-green:   hsl(150, 72%, 22%);     /* Rich emerald green - Green milestone */
  --tm-yellow:  hsl(39, 85%, 28%);      /* Deep gold / warm amber - Yellow milestone */
  --tm-red:     hsl(355, 75%, 25%);     /* Powerful crimson red - Red milestone (Over time limit) */

  /* Semi-transparent Glassmorphism parameters */
  --glass-bg: rgba(16, 23, 38, 0.65);
  --glass-bg-hover: rgba(29, 40, 60, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-focus: rgba(99, 102, 241, 0.5);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  
  /* Primary styling accents (buttons, selections, and glowing elements) */
  /* To change the main theme accent, edit this gradient and accent colors: */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-color: #8b5cf6;
  --accent-color-glow: rgba(139, 92, 246, 0.35);
  
  /* Standard typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-slate-950);
  color: var(--color-slate-200);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

body.theme-dark {
  background-attachment: fixed;
  background-image: 
    radial-gradient(at 10% 10%, rgba(30, 41, 59, 0.5) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(15, 23, 42, 0.8) 0px, transparent 50%),
    linear-gradient(180deg, var(--color-slate-950) 0%, #06090f 100%);
}

#app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
  flex-grow: 1;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}

/* ==========================================================================
   Aesthetics: Glassmorphism Card System
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(110%);
  -webkit-backdrop-filter: blur(16px) saturate(110%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 16px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px -10px var(--glass-shadow);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glow:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 15px 35px -5px var(--glass-shadow),
    0 0 20px 0 var(--accent-color-glow);
  transform: translateY(-2px);
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px var(--accent-color-glow));
  animation: logo-float 4s ease-in-out infinite;
}

.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.1rem;
  line-height: 1.1;
}

.logo-text .highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--color-slate-400);
  font-weight: 500;
  letter-spacing: 0.05rem;
}

/* Header Badges */
.header-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 99px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.badge-inactive {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border-color: rgba(220, 38, 38, 0.25);
}

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

.badge-inactive .badge-dot {
  animation: badge-pulse-red 2s infinite;
}

.badge-active .badge-dot {
  background-color: #34d399;
  animation: badge-pulse-green 1.5s infinite;
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-slate-200);
}

/* ==========================================================================
   Views & Structure
   ========================================================================== */
.view-active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: view-fade-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-hidden {
  display: none !important;
}

/* Configuration View Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 968px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.config-column, .settings-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Form Elements & Inputs
   ========================================================================== */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-slate-400);
}

.input-group input[type="text"] {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--color-slate-100);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.input-group input[type="text"]:focus {
  border-color: var(--glass-border-focus);
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 0 15px 0 var(--accent-color-glow);
}

/* Preset timing selector grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.2rem 1rem;
  color: var(--color-slate-200);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.preset-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background-color 0.3s ease;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.preset-btn.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--glass-border-focus);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.preset-btn.active::after {
  background: var(--accent-gradient);
}

.preset-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.preset-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.preset-duration {
  font-size: 0.85rem;
  color: var(--color-slate-400);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.preset-details {
  font-size: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-slate-400);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.preset-btn.active .preset-duration {
  color: var(--color-slate-200);
}

.preset-btn.active .preset-details {
  color: #c084fc;
}

/* Collapsible Form Card style */
.collapsed {
  max-height: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
  border-color: transparent !important;
  opacity: 0;
  pointer-events: none;
  margin-top: -1rem;
}

#custom-timing-form {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Timing Layout */
.custom-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .custom-inputs-row {
    grid-template-columns: 1fr;
  }
}

.custom-input-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--color-slate-700);
}

.custom-input-col.border-green { border-left-color: #10b981; }
.custom-input-col.border-yellow { border-left-color: #f59e0b; }
.custom-input-col.border-red { border-left-color: #ef4444; }

.color-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02rem;
}

.text-green { color: #34d399; }
.text-yellow { color: #fbbf24; }
.text-red { color: #f87171; }

.time-inputs {
  display: flex;
  gap: 0.5rem;
}

.number-input {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  width: 100%;
}

.number-input:focus-within {
  border-color: var(--glass-border-focus);
}

.number-input input[type="number"] {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

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

.number-input .unit {
  font-size: 0.75rem;
  color: var(--color-slate-400);
  font-weight: 500;
  padding-left: 0.15rem;
}

.validation-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
  animation: shake 0.5s ease-in-out;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Preferences Panel & Switches
   ========================================================================== */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
}

.setting-desc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.setting-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.setting-hint {
  font-size: 0.75rem;
  color: var(--color-slate-400);
}

/* iOS Toggle Switches */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-slate-700);
  transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background: var(--accent-gradient);
}

input:focus + .slider {
  box-shadow: 0 0 1px #8b5cf6;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==========================================================================
   Action Buttons
   ========================================================================== */
.action-btn {
  width: 100%;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.2rem;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-color-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px var(--accent-color-glow),
    0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-pulse {
  animation: button-pulse-glow 2.5s infinite;
}

.start-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-slate-400);
  margin-top: 0.8rem;
}

/* ==========================================================================
   Session History Logs Component
   ========================================================================== */
.history-card {
  padding: 1.5rem 2rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.action-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-slate-200);
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.2s ease;
}

.action-badge:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.history-table-container {
  overflow-x: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: rgba(15, 23, 42, 0.4);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-slate-400);
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--color-slate-200);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.text-muted { color: var(--color-slate-400); }
.text-center { text-align: center; }

/* Status tags in History log */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.tag-qualified {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.2);
}

.tag-undertime {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.tag-disqualified {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   View 2: Immersive Beacon / Timer Canvas
   ========================================================================== */
#timer-view {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  min-height: 500px;
}

/* Immersive background transition container */
.immersive-beacon {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Toastmasters dynamic light states */
.bg-neutral { background-color: var(--tm-neutral) !important; }
.bg-green   { background-color: var(--tm-green) !important; }
.bg-yellow  { background-color: var(--tm-yellow) !important; }
.bg-red     { background-color: var(--tm-red) !important; }

/* The Glassmorphism UI panel floating over color beacon */
.overlay-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(16, 23, 38, 0.3) 0%, rgba(9, 13, 22, 0.7) 100%);
  z-index: 10;
  transition: opacity 0.5s ease;
}

/* Immersive Mode (Auto-hides elements) */
.immersive-active .overlay-panel {
  cursor: none;
}

/* Floating Escape Bar */
.immersive-floating-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  animation: slide-down 0.4s ease-out;
}

#immersive-speaker-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#immersive-speaker-badge::before {
  content: '🎤';
}

#immersive-preset-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-slate-400);
}

.btn-floating {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-floating:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.03);
}

/* Center Content & Glass Clock Ring */
.timer-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.digits-ring-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(16, 23, 38, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 30px rgba(255, 255, 255, 0.05);
  animation: clock-glow 6s linear infinite;
  transition: all 0.5s ease;
}

.digits-text {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.05rem;
  line-height: 1;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  margin-bottom: 0.25rem;
}

.speech-status-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  color: var(--color-slate-400);
  text-transform: uppercase;
}

/* Immersive Text display when numbers are hidden */
.hidden-digits-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(16, 23, 38, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  max-width: 320px;
  animation: zoom-in 0.3s ease-out;
}

.indicator-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  animation: pulse-slow 3s infinite;
}

.indicator-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.indicator-sub {
  font-size: 0.8rem;
  color: var(--color-slate-400);
  line-height: 1.4;
}

/* Floating Control Deck at bottom */
.floating-controls-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  border-radius: 50px !important;
  animation: slide-up 0.4s ease-out;
}

.btn-circle {
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.05);
}

.btn-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.35);
}

.btn-circle:active {
  transform: translateY(0);
}

.btn-circle .icon {
  font-size: 1.1rem;
}

.btn-warn {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.4);
}
.btn-warn:hover {
  background: rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes badge-pulse-red {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes badge-pulse-green {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

@keyframes button-pulse-glow {
  0%, 100% { box-shadow: 0 6px 20px var(--accent-color-glow); }
  50% { box-shadow: 0 6px 25px rgba(139, 92, 246, 0.65), 0 0 25px rgba(236, 72, 153, 0.3); }
}

@keyframes clock-glow {
  0% { border-color: rgba(255, 255, 255, 0.15); }
  50% { border-color: rgba(255, 255, 255, 0.35); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(255, 255, 255, 0.08); }
  100% { border-color: rgba(255, 255, 255, 0.15); }
}

@keyframes view-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-down {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes zoom-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-4px); }
  30%, 60%, 90% { transform: translateX(4px); }
}
