:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-glass: rgba(26, 26, 46, 0.7);
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-muted: #606080;
  --accent-blue: #4fc3f7;
  --accent-purple: #bb86fc;
  --accent-orange: #ff6b35;
  --accent-green: #03dac6;
  --accent-red: #cf6679;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 40px rgba(79, 195, 247, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Sizing Settings */
  --control-panel-width: 380px;
  --dashboard-height: 320px;
  --track-sidebar-width: 160px;
}

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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
}

/* ========== LOGIN ========== */
#login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 32px;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0f 70%);
}

.login-logo {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: -16px;
}

/* Email Login Form */
.email-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 8px;
}

.email-login-form input {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}

.email-login-form input:focus {
  outline: none;
  border-color: #64b5f6;
  background: rgba(255, 255, 255, 0.1);
}

#email-login-btn {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, #64b5f6, #42a5f5);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

#email-login-btn:hover {
  background: linear-gradient(135deg, #42a5f5, #2196f3);
  transform: translateY(-2px);
}

.login-divider {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.login-divider span {
  padding: 0 12px;
}

#login-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  background: linear-gradient(135deg, #4285f4, #356ac3);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}
#login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(66, 133, 244, 0.5);
}
#login-btn svg { width: 20px; height: 20px; }

/* ========== MAIN ========== */
#main-section {
  display: none;
  flex-direction: column;
  height: 100vh;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}
.status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: pulse-dot 2s infinite;
}
.status-badge.connected::before { background: var(--accent-green); }
.status-badge.playing::before { background: var(--accent-orange); animation: pulse-dot 0.8s infinite; }
.status-badge.disconnected::before { background: var(--accent-red); }
.status-badge.mobile-online::before { background: var(--accent-green); }
.status-badge.mobile-offline::before { background: var(--text-muted); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#user-info {
  color: var(--text-secondary);
  font-size: 13px;
}

#audio-select {
  padding: 6px 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  max-width: 200px;
}

#logout-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
#logout-btn:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
}

/* Content */
.content {
  flex: 1;
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;
}

/* Visualizer Section - DAW vertical split */
.visualizer-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-primary);
  min-height: 0;
}

.visualizer-canvas-container {
  flex: 1;  /* Fill remaining space dynamic to dashboard height */
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at center, #111122 0%, #0a0a0f 100%);
  min-height: 0;
}

#visualizer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Status overlay */
.status-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
  z-index: 5;
}

#macro-info {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-purple);
}

#bpm-display {
  font-size: 28px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-blue);
}

#status-text {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Alert */
#alert-box {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(207, 102, 121, 0.9), rgba(207, 102, 121, 0.7));
  backdrop-filter: blur(10px);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(207, 102, 121, 0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ========== PROFILE TRIGGER ========== */
.profile-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  max-width: 180px;
}

.profile-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.profile-trigger-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-trigger-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== ACCOUNT DETAILS MODAL ========== */
.modal-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.25s ease-out;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  width: 90%;
  max-width: 440px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  z-index: 2001;
  transform: scale(0.95);
  animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

@keyframes scaleUp {
  to { transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--accent-red);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.modal-avatar-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 8px 24px rgba(79, 195, 247, 0.25);
}

.modal-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
}

.modal-info-section {
  text-align: center;
  margin-bottom: 4px;
}

.modal-display-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.provider-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.provider-badge.google {
  background: rgba(3, 218, 198, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(3, 218, 198, 0.3);
}

.provider-badge.email {
  background: rgba(187, 134, 252, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(187, 134, 252, 0.3);
}

.modal-username {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  margin-top: -2px;
  margin-bottom: 8px;
}

.streak-container {
  margin-bottom: 12px;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(255, 107, 53, 0.12);
  color: #ff9166;
  border: 1px solid rgba(255, 107, 53, 0.3);
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.1);
}

.streak-badge.empty {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.modal-section-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.section-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.modal-bio-card {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  white-space: pre-wrap;
}

.instruments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instrument-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(79, 195, 247, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(79, 195, 247, 0.2);
}

.instrument-tag.empty {
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 0;
}

.modal-details-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 14px;
  color: var(--text-primary);
  word-break: break-all;
}

.uid-row .uid-copy-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.uid-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}

.copy-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(79, 195, 247, 0.1);
  color: var(--accent-blue);
  border-color: rgba(79, 195, 247, 0.3);
}

.copy-btn.copied {
  background: rgba(3, 218, 198, 0.15) !important;
  color: var(--accent-green) !important;
  border-color: rgba(3, 218, 198, 0.4) !important;
}

/* ========== CONTROL PANEL (PC PRESETS REMOTE) ========== */
.control-panel {
  width: var(--control-panel-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 26, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-subtle);
  height: 100%;
  overflow: hidden;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.panel-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.panel-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.control-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.stop-all-btn {
  background: rgba(207, 102, 121, 0.1);
  color: var(--accent-red);
  border-color: rgba(207, 102, 121, 0.2);
}

.stop-all-btn:hover {
  background: rgba(207, 102, 121, 0.2);
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(207, 102, 121, 0.15);
}

.panel-tabs {
  display: flex;
  padding: 6px 12px;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  border-radius: var(--radius-sm);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  color: var(--accent-purple);
  border-bottom-color: var(--accent-purple);
  background: rgba(187, 134, 252, 0.05);
}

.panel-lists {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tab-content {
  display: none;
  height: 100%;
}

.tab-content.active {
  display: block;
}

.preset-list {
  height: 100%;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom scrollbar for control panel */
.preset-list::-webkit-scrollbar {
  width: 6px;
}
.preset-list::-webkit-scrollbar-track {
  background: transparent;
}
.preset-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.preset-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.list-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 40px 20px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.01);
}

.preset-card {
  background: rgba(26, 26, 46, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.preset-card:hover {
  border-color: rgba(187, 134, 252, 0.3);
  background: rgba(26, 26, 46, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.preset-card.active {
  border-color: var(--accent-purple);
  background: rgba(187, 134, 252, 0.08);
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.1);
}

.preset-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.preset-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preset-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.preset-badge {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-bpm {
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent-blue);
}

.badge-sig {
  background: rgba(3, 218, 198, 0.15);
  color: var(--accent-green);
}

.badge-layers {
  background: rgba(187, 134, 252, 0.15);
  color: var(--accent-purple);
}

.preset-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-preset-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.play-preset-btn:hover {
  background: var(--accent-purple);
  color: #000;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.4);
}

.preset-card.active .play-preset-btn {
  background: var(--accent-purple);
  color: #000;
  border-color: var(--accent-purple);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(187, 134, 252, 0.4); }
  50% { box-shadow: 0 0 15px rgba(187, 134, 252, 0.8); }
}

/* Responsive */
@media (max-width: 900px) {
  .content {
    flex-direction: column;
  }
  .visualizer-section {
    height: 60%;
  }
  .control-panel {
    width: 100%;
    height: 40%;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 768px) {
  .top-bar { padding: 8px 16px; }
  .status-overlay { padding: 12px 20px; gap: 16px; bottom: 16px; }
  #bpm-display { font-size: 22px; }
  .login-logo { font-size: 32px; }
  .profile-trigger-name { display: none; }
  .profile-trigger-btn { padding: 4px; }
  .modal-card { padding: 20px; }
}

/* ==========================================
   Active Metronome Dashboard
   ========================================== */
.metronome-dashboard {
  height: 100%;
  flex: none;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(16, 16, 28, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Step Editor Row */
.step-editor-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.row-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 1.5px;
}

.step-dots-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}

/* Step Dot Styles */
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.step-dot:hover {
  border-color: rgba(187, 134, 252, 0.4);
  background: rgba(187, 134, 252, 0.05);
}

.step-dot.active {
  background: rgba(187, 134, 252, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: inset 0 0 8px rgba(187, 134, 252, 0.2);
}

.step-dot.accented {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(3, 218, 198, 0.15);
}

/* Active playback indicator glowing dot */
.step-dot.current {
  transform: scale(1.08);
  box-shadow: 0 0 12px var(--accent-purple);
  z-index: 2;
  border-color: #fff;
  color: #fff;
}

.step-dot.current.accented {
  box-shadow: 0 0 12px var(--accent-green);
  border-color: #fff;
}

.step-dot.muted {
  opacity: 0.25;
  border-style: dashed;
}

/* Controls Grid */
.dashboard-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.control-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.control-box:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.control-value-badge {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(79, 195, 247, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.2);
}

/* Controls input styles */
.circle-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.circle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-primary);
}

.tap-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-purple);
  background: rgba(187, 134, 252, 0.05);
  color: var(--accent-purple);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tap-btn:hover {
  background: var(--accent-purple);
  color: #000;
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.3);
}

.primary-play-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-green);
  background: rgba(3, 218, 198, 0.1);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(3, 218, 198, 0.15);
}

.primary-play-btn:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 20px rgba(3, 218, 198, 0.4);
  transform: translateY(-1px);
}

.primary-play-btn.playing {
  border-color: var(--accent-red);
  background: rgba(207, 102, 121, 0.15);
  color: var(--accent-red);
  box-shadow: 0 0 15px rgba(207, 102, 121, 0.2);
}

.primary-play-btn.playing:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(207, 102, 121, 0.4);
  transform: translateY(-1px);
}

.bpm-control-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-fill-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Custom sliders */
.control-box input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.control-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 6px var(--accent-purple);
  transition: transform 0.1s;
}

.control-box input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Select items */
.control-box select {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.control-box select:focus {
  border-color: var(--accent-purple);
}

.selector-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.selector-divider {
  color: var(--text-muted);
  font-weight: bold;
}

/* Switches & Toggles */
.accent-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.accent-switch-container input[type="checkbox"] {
  display: none;
}

.switch-custom {
  width: 30px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-custom::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.accent-switch-container input[type="checkbox"]:checked + .switch-custom {
  background: var(--accent-green);
}

.accent-switch-container input[type="checkbox"]:checked + .switch-custom::after {
  transform: translateX(14px);
}

.switch-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.flex-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.swing-input-wrapper, .volume-input-wrapper {
  flex: 1;
  max-width: 120px;
}

/* Voice Settings Row */
.voice-settings-box {
  grid-column: span 2;
}

@media (max-width: 1200px) {
  .voice-settings-box {
    grid-column: span 1;
  }
}

.voice-controls-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.voice-sliders {
  display: flex;
  gap: 12px;
  flex: 1;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 90px;
}

.slider-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

/* ========== METRONOME DASHBOARD & STEP DOTS (PREMIUM RHYTHM CONTROLS) ========== */
.metronome-dashboard {
  flex: none;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 20px;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Dashboard controls grid layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Dashboard Control Item Card */
.dashboard-control-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition);
}

.dashboard-control-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dashboard-control-item .item-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

/* Step dots indication container */
.step-dots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  width: 100%;
}

/* Individual Step Dot style */
.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.step-dot:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Active status (enabled steps) */
.step-dot.active {
  background: rgba(79, 195, 247, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

.step-dot.active:hover {
  background: rgba(79, 195, 247, 0.25);
}

/* Accent status */
.step-dot.active.accented {
  background: rgba(187, 134, 252, 0.2);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 14px rgba(187, 134, 252, 0.35);
}

.step-dot.active.accented:hover {
  background: rgba(187, 134, 252, 0.3);
}

/* Muted/Disabled step */
.step-dot.muted {
  background: rgba(207, 102, 121, 0.05);
  border-color: rgba(207, 102, 121, 0.2);
  color: rgba(207, 102, 121, 0.4);
}

.step-dot.muted:hover {
  background: rgba(207, 102, 121, 0.1);
  border-color: rgba(207, 102, 121, 0.4);
}

/* Current playing tick (Strong white glow with blue halo) */
.step-dot.current {
  background: #ffffff !important;
  color: #0a0a0f !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 20px #ffffff, 0 0 40px var(--accent-blue);
  transform: scale(1.15);
}

/* ==================== LAYER MANAGEMENT & MIXER ==================== */

/* Layer Manager Row */
.layer-manager-row {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Tighter spacing */
  background: var(--bg-glass) !important;
  padding: 10px 14px !important; /* Extremely optimized vertical padding */
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px; /* Reduce spacing below card */
}

.layer-selector-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.layer-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  max-width: 100%;
  scrollbar-width: none; /* Hide scrollbars */
}

.layer-tabs::-webkit-scrollbar {
  display: none;
}

.layer-tab-btn {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.layer-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.layer-tab-btn.active-layer-tab {
  background: linear-gradient(135deg, var(--accent-blue), rgba(79, 195, 247, 0.15));
  color: var(--text-primary);
  border-color: var(--accent-blue);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.25);
}

.layer-count-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.layer-count-wrapper select {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.layer-count-wrapper select:focus {
  border-color: var(--accent-blue);
}

/* Layer Mixer Box */
.mixer-control-box {
  margin-top: 10px;
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-subtle) !important;
}

.layer-mixer-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mixer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.mixer-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mixer-row.active-mixer-row {
  border-color: rgba(79, 195, 247, 0.3);
  background: rgba(79, 195, 247, 0.02);
}

.mixer-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mixer-layer-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 32px;
  cursor: pointer;
  transition: var(--transition);
}

.mixer-layer-label:hover {
  color: var(--accent-blue);
}

.mixer-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.1s ease, box-shadow 0.1s ease;
}

.mixer-indicator.flash {
  background: var(--accent-green) !important;
  box-shadow: 0 0 10px var(--accent-green) !important;
}

.mixer-indicator.flash-accent {
  background: var(--accent-orange) !important;
  box-shadow: 0 0 12px var(--accent-orange) !important;
}

.mixer-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mixer-play-btn {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.mixer-play-btn.playing {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 8px rgba(3, 218, 198, 0.3);
}

.mixer-play-btn:hover {
  opacity: 0.9;
}

.mixer-global-target-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.mixer-global-target-checkbox {
  cursor: pointer;
  accent-color: var(--accent-blue);
  width: 15px;
  height: 15px;
}

/* ==========================================
   Macro Editor Premium UI Styles
   ========================================== */

/* Extra Large Modal Cards */
.modal-card-xl {
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.96) translateY(10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Tabs */
.editor-tab-btn:hover {
  color: var(--text-primary) !important;
}

.editor-tab-btn.active {
  color: var(--accent-purple) !important;
  border-bottom-color: var(--accent-purple) !important;
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.25);
}

.editor-panel {
  display: none;
  height: 100%;
}

.editor-panel.active {
  display: flex !important;
}

/* Variable items */
.editor-var-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.editor-var-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.editor-var-name {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-green);
}

.editor-var-val {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Block Item Cards */
.editor-block-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 30, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.editor-block-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--text-secondary);
}

.editor-block-card.setBpm::before,
.editor-block-card.addBpm::before {
  background: var(--accent-purple);
}

.editor-block-card.waitMeasures::before,
.editor-block-card.waitTime::before {
  background: var(--accent-blue);
}

.editor-block-card.playControl::before,
.editor-block-card.jumpLabel::before,
.editor-block-card.jumpTo::before,
.editor-block-card.jumpToTick::before {
  background: var(--accent-orange);
}

.editor-block-card.setVariable::before,
.editor-block-card.mathVariable::before {
  background: var(--accent-green);
}

.editor-block-card.alert::before {
  background: #ef5350;
}

.editor-block-card.modifyDashboard::before {
  background: #ffeb3b;
}

.editor-block-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.editor-block-card.block-running {
  background: rgba(3, 218, 198, 0.08);
  border-color: rgba(3, 218, 198, 0.4);
  box-shadow: 0 0 12px rgba(3, 218, 198, 0.2);
  transform: translateX(4px);
}

.editor-block-card.block-running::before {
  background: var(--accent-green);
}

.editor-block-card.block-running .editor-block-title {
  color: var(--accent-green);
}

.editor-block-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  margin-left: 12px;
}

.editor-block-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-block-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.editor-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-block-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.editor-block-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.editor-block-action-btn.delete:hover {
  background: rgba(239, 83, 80, 0.15);
  color: #ef5350;
  border-color: rgba(239, 83, 80, 0.25);
}

/* Category Button items */
.selector-block-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  outline: none;
}

.selector-block-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.block-icon {
  font-size: 16px;
}

/* Dynamic param form styling */
.param-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.param-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.param-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
}

.param-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.param-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(79, 195, 247, 0.2);
}

.param-type-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.param-type-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.param-type-toggle.variable-active {
  background: rgba(79, 195, 247, 0.15);
  color: var(--accent-blue);
  border-color: rgba(79, 195, 247, 0.3);
}

/* Dashboard Component list items */
.dashboard-comp-card {
  background: rgba(30, 30, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s;
}

.dashboard-comp-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-comp-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-comp-badge {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-secondary);
}

/* ========== GLOBAL MASTER VOLUME SLIDER ========== */
.master-volume-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.master-volume-container:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.master-volume-icon {
  font-size: 14px;
  cursor: default;
  user-select: none;
}

#master-volume-slider {
  -webkit-appearance: none;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

#master-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
  transition: transform 0.15s;
}

#master-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.master-volume-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  min-width: 32px;
  text-align: right;
  user-select: none;
}

/* ========== DEVICE TOGGLE BUTTON ========== */
.device-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.device-toggle-btn .device-icon {
  font-size: 16px;
  transition: transform 0.3s;
}

.device-toggle-btn:hover .device-icon {
  transform: rotate(15deg);
}

/* Neon dot indicator on the button */
.device-toggle-btn .device-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  transition: all 0.3s;
}

/* Active PC Output State (cyan glow) */
.device-toggle-btn.pc-active {
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-toggle-btn.pc-active .device-icon {
  color: var(--accent-blue);
}

.device-toggle-btn.pc-active .device-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
}

/* Active Mobile Output State (purple glow) */
.device-toggle-btn.mobile-active {
  border-color: rgba(187, 134, 252, 0.4);
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-toggle-btn.mobile-active .device-icon {
  color: var(--accent-purple);
}

.device-toggle-btn.mobile-active .device-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 6px var(--accent-purple);
}

/* Offline state (inactive grey) */
.device-toggle-btn.offline {
  opacity: 0.4;
  border-color: var(--border-subtle);
}

.device-toggle-btn.offline .device-dot {
  background: transparent;
}


/* ========== DEVICE GUIDE MODAL (Premium Blur UI) ========== */
.device-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.device-modal.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.device-modal-content {
  background: linear-gradient(135deg, rgba(20, 20, 35, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: deviceModalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes deviceModalScaleIn {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.device-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.device-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.device-modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.device-modal-close-btn:hover {
  color: var(--text-primary);
}

.device-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.device-modal-body .modal-p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--accent-purple);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 0 6px var(--accent-purple);
}

.step-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.device-modal-footer-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.device-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.device-modal-ok-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-purple);
  border: 1px solid var(--accent-purple);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
}

.device-modal-ok-btn:hover {
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
}


/* ========== PREMIUM TOAST NOTIFICATION ========== */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: toastFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1), toastFadeOut 0.3s 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.toast.pc,
.toast.web {
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(5, 10, 15, 0.98) 100%);
  border: 1px solid rgba(79, 195, 247, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(79, 195, 247, 0.1);
}

.toast.mobile {
  background: linear-gradient(135deg, rgba(29, 13, 42, 0.95) 0%, rgba(10, 5, 15, 0.98) 100%);
  border: 1px solid rgba(187, 134, 252, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(187, 134, 252, 0.1);
}

@keyframes toastFadeIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes toastFadeOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}

/* ========== MOBILE REFRESH BUTTON ========== */
.mobile-refresh-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-refresh-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(187, 134, 252, 0.3);
  color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
  transform: scale(1.05);
}

.mobile-refresh-btn svg {
  transition: transform 0.2s ease;
}

.mobile-refresh-btn.spinning svg {
  animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Refresh state toast styling overrides */
.toast.refresh {
  background: linear-gradient(135deg, rgba(13, 30, 30, 0.95) 0%, rgba(5, 10, 10, 0.98) 100%);
  border: 1px solid rgba(3, 218, 198, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 10px rgba(3, 218, 198, 0.1);
}


/* ==========================================================================
   DAW Multi-track Timeline styles (Studio Theme)
   ========================================================================== */

.track-dashboard {
  height: 100%;
  flex: none;
  min-height: 200px;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.92) 0%, rgba(5, 7, 12, 0.96) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(25px);
  overflow: hidden;
}

/* Header controller row */
.track-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.track-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.track-project-icon {
  font-size: 18px;
}

.track-project-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.track-project-bpm {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(79, 195, 247, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 247, 0.15);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.track-project-bpm:hover {
  background: rgba(79, 195, 247, 0.25);
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.25);
}

.track-header-center {
  display: flex;
  align-items: center;
}

.track-timecode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-green);
  background: rgba(3, 218, 198, 0.08);
  border: 1px solid rgba(3, 218, 198, 0.2);
  padding: 4px 16px;
  border-radius: 6px;
  min-width: 110px;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px rgba(3, 218, 198, 0.05);
}

.track-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Playback metronome toggle inside timeline */
.track-metro-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin-right: 12px;
}

.track-metro-switch input[type="checkbox"] {
  display: none;
}

.metro-switch-custom {
  width: 26px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metro-switch-custom::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.track-metro-switch input[type="checkbox"]:checked + .metro-switch-custom {
  background: var(--accent-blue);
}

.track-metro-switch input[type="checkbox"]:checked + .metro-switch-custom::after {
  transform: translateX(12px);
}

.metro-switch-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Small transport buttons */
.track-ctrl-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.track-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.track-play-primary {
  border-color: var(--accent-green);
  background: rgba(3, 218, 198, 0.08);
  color: var(--accent-green);
}

.track-play-primary:hover {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 0 12px rgba(3, 218, 198, 0.3);
}

.track-play-primary.playing {
  border-color: var(--accent-red);
  background: rgba(207, 102, 121, 0.1);
  color: var(--accent-red);
}

.track-play-primary.playing:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 12px rgba(207, 102, 121, 0.3);
}

/* Timeline grid core layout */
.track-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  background: rgba(5, 7, 12, 0.3);
}

/* Sidebar for track channel strips */
.track-sidebar {
  width: var(--track-sidebar-width);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.15);
  z-index: 10;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin-top: 24px; /* Offset to align with Ruler header height */
}

/* Individual track channel strip */
.track-channel-strip {
  height: 72px; /* Fixed height matching row height */
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.channel-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Mixer toggles */
.channel-switches {
  display: flex;
  gap: 3px;
}

.channel-btn {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  font-weight: 800;
  cursor: default; /* Read-only remote indicator on PC */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.channel-btn.mute.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 6px rgba(207, 102, 121, 0.4);
}

.channel-btn.solo.active {
  background: #f59e0b;
  color: #000;
  border-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.channel-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.channel-vol-icon {
  font-size: 10px;
  color: var(--text-muted);
}

/* Slider indicator (read only representation) */
.channel-vol-slider {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.channel-vol-slider-fill {
  height: 100%;
  background: var(--accent-blue);
  width: 80%; /* Volume width */
}

/* Timeline scrollable canvas viewport */
.track-timeline-scrollable {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: thin;
}

/* Track scrollbar style */
.track-timeline-scrollable::-webkit-scrollbar {
  height: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.track-timeline-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.track-timeline-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.track-timeline-container {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ruler displaying beats */
.track-time-ruler {
  height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  flex-shrink: 0;
}

.beat-marker {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.beat-marker-tick {
  width: 1px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.beat-marker-label {
  line-height: 1.0;
}

/* Grid lines & lanes background container */
.track-lanes-grid {
  position: relative;
  flex: 1;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 47px,
    rgba(255, 255, 255, 0.02) 47px,
    rgba(255, 255, 255, 0.02) 48px
  );
}

/* Dynamic grid lanes rows (corresponds to channel strips in sidebar) */
.timeline-lane-row {
  height: 72px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

/* DAW Blocks styles (Studio Premium Theme Palette) */
.track-block {
  position: absolute;
  height: 46px; /* Centered in 72px lane */
  top: 13px;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease;
}

.track-block:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.block-title {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.block-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

/* Sky blue (Audio block) */
.track-block.block-audio {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Indigo blue (Metronome / Macro block) */
.track-block.block-macroMetronome {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  border-color: rgba(99, 102, 241, 0.35);
}

/* Mint green (Chord Block) */
.track-block.block-chord {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

/* Coral pink (Recording Block) */
.track-block.block-recording {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  border-color: rgba(236, 72, 153, 0.35);
}

/* Playback head pointer */
.track-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red), 0 0 16px var(--accent-red);
  z-index: 20;
  pointer-events: none; /* Mouse clicks bypass pointer */
  transform: translateX(0);
}

/* Playhead handle bulb on ruler */
.track-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  width: 12px;
  height: 12px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-135deg);
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

/* ==========================================================================
   UI Resizing Drag Handles
   ========================================================================== */
.resize-handle-v {
  width: 8px;
  cursor: ew-resize;
  background: rgba(255, 255, 255, 0.01);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}
.resize-handle-v:hover, .resize-handle-v.dragging {
  background: rgba(187, 134, 252, 0.15);
  border-color: rgba(187, 134, 252, 0.4);
}

.resize-handle-h {
  height: 8px;
  cursor: ns-resize;
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 100;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
}
.resize-handle-h:hover, .resize-handle-h.dragging {
  background: rgba(187, 134, 252, 0.15);
  border-color: rgba(187, 134, 252, 0.4);
}

.bottom-dashboard-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
  height: var(--dashboard-height);
}

/* ==========================================================================
   Multi-Window Panel Pop-out Styles
   ========================================================================== */
.popout-btn-small {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-left: 8px;
}
.popout-btn-small:hover {
  background: rgba(187, 134, 252, 0.15);
  border-color: rgba(187, 134, 252, 0.4);
  color: var(--accent-purple);
}

.popup-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.4);
  border: 2px dashed rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin: 12px;
  box-sizing: border-box;
  text-align: center;
  min-height: 120px;
}
#top-bar-placeholder {
  flex: none !important;
  min-height: auto !important;
  height: 56px;
  margin: 0 !important;
  padding: 0 24px;
  border: none !important;
  border-bottom: 1px dashed rgba(187, 134, 252, 0.4) !important;
  border-radius: 0 !important;
  background: rgba(18, 18, 26, 0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-sizing: border-box;
}
#control-panel-placeholder {
  width: var(--control-panel-width);
  height: 100%;
  flex: none;
  border-left: 1px solid var(--border-subtle);
  background: rgba(18, 18, 26, 0.4);
  margin: 0;
  border-radius: 0;
}
#bottom-dashboard-placeholder {
  height: var(--dashboard-height);
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}
#visualizer-placeholder {
  flex: 1;
  height: 100%;
  margin: 0;
  border-radius: 0;
  border: none;
  background: rgba(10, 10, 15, 0.4);
}

.placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#top-bar-placeholder .placeholder-card {
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  height: 100%;
  padding: 0;
  gap: 16px;
}

.placeholder-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.3));
}
#top-bar-placeholder .placeholder-icon {
  font-size: 16px;
}

.placeholder-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.placeholder-btn {
  background: rgba(187, 134, 252, 0.12) !important;
  color: var(--accent-purple) !important;
  border: 1px solid rgba(187, 134, 252, 0.3) !important;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.placeholder-btn:hover {
  background: rgba(187, 134, 252, 0.25) !important;
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.2);
}

/* Popped-out State Styles (Viewport Fit inside child windows) */
.popped-out {
  border: none !important;
  box-shadow: none !important;
  background: #0a0a0f !important;
}

#main-top-bar.popped-out {
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
}

#main-control-panel.popped-out {
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
}

#bottom-dashboard-container.popped-out {
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
}

#bottom-dashboard-container.popped-out .metronome-dashboard,
#bottom-dashboard-container.popped-out .track-dashboard {
  height: 100vh !important;
  border-top: none !important;
  box-sizing: border-box;
}

#visualizer-canvas-container.popped-out {
  width: 100vw !important;
  height: 100vh !important;
  box-sizing: border-box;
}

#popout-visualizer-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  opacity: 0.15;
  transition: opacity 0.2s ease-in-out;
}
#visualizer-canvas-container:hover #popout-visualizer-btn {
  opacity: 1;
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.4);
}

/* Premium Floating Action Button for Adding Dashboard Elements */
.glass-fab-btn {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(22, 22, 32, 0.45);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.3;
}

#visualizer-canvas-container:hover .glass-fab-btn {
  opacity: 1;
}

.glass-fab-btn:hover {
  background: rgba(30, 30, 45, 0.7);
  border-color: rgba(187, 134, 252, 0.4);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(187, 134, 252, 0.3), 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.glass-fab-btn:active {
  transform: translateY(1px);
  box-shadow: 0 0 6px rgba(187, 134, 252, 0.2);
}

.glass-fab-btn .plus-icon {
  font-size: 11px;
  transition: transform 0.25s ease;
}

.glass-fab-btn:hover .plus-icon {
  transform: rotate(90deg);
}

/* ==========================================================================
   PREMIUM GLASSMORPHIC VISUALIZER DASHBOARD OVERLAY STYLES
   ========================================================================== */
.visualizer-dashboard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 24px;
  z-index: 10;
  pointer-events: none;
  overflow: auto;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Component Card Style */
.dashboard-component-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(22, 22, 32, 0.45);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  color: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  user-select: none;
  pointer-events: auto;
}

/* Glowing Neon Left Indicator Accent */
.dashboard-component-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--widget-accent, #2196f3);
  border-radius: 4px 0 0 4px;
  transition: filter 0.25s ease;
}

/* Interaction Hover & Tap Micro-animations */
.dashboard-component-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(26, 26, 38, 0.55);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5), 
              0 0 15px rgba(255, 255, 255, 0.03);
}

.dashboard-component-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, var(--widget-accent, #2196f3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.dashboard-component-card:hover::after {
  opacity: 0.12;
}

.dashboard-component-card:hover::before {
  filter: drop-shadow(0 0 4px var(--widget-accent, #2196f3));
}

/* Action Button Interactive States */
button.dashboard-component-card {
  outline: none;
  cursor: pointer;
  text-align: left;
  border-radius: 12px;
}

button.dashboard-component-card:active {
  transform: scale(0.97);
  background: rgba(18, 18, 28, 0.6);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.4);
}

/* Widget Text Hierarchy */
.widget-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

.widget-value {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Inter', "JetBrains Mono", monospace;
  color: #ffffff;
  line-height: 1.2;
  margin: auto 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1;
}

.widget-memo {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
}

/* Variable display value styling */
.widget-value.var-value {
  color: var(--widget-accent, #03dac6);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.02em;
}

/* Metric Display value styling */
.widget-value.metric-value {
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
}

/* Text widget styling */
.widget-text-content {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  margin: auto 0;
  z-index: 1;
}

/* Action button internal content alignment */
.widget-action-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 0;
  z-index: 1;
}

.widget-action-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  color: var(--widget-accent, #2196f3);
}

.dashboard-component-card:hover .widget-action-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

/* Visualizer flash widget styling */
.visualizer-widget-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  z-index: 1;
}

.pulse-indicator {
  font-size: 24px;
  color: var(--widget-accent, #2196f3);
  opacity: 0.2;
  transition: transform 0.1s ease-out, opacity 0.15s ease-out;
  transform: scale(0.9);
}

.visualizer-widget-box.flash-active .pulse-indicator {
  opacity: 1;
  transform: scale(1.3);
  text-shadow: 0 0 12px var(--widget-accent, #2196f3);
}

/* Chord Display Widget Styles */
.chord-display-widget {
  background: linear-gradient(135deg, rgba(16, 20, 30, 0.65) 0%, rgba(10, 12, 18, 0.8) 100%) !important;
  border: 1px solid rgba(187, 134, 252, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.chord-display-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  flex: 1;
}
.chord-display-current {
  font-size: 54px;
  font-weight: 900;
  color: var(--accent-purple);
  text-shadow: 0 0 20px rgba(187, 134, 252, 0.6), 0 0 40px rgba(187, 134, 252, 0.3);
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -2px;
  line-height: 1.0;
  margin-top: 4px;
  margin-bottom: 6px;
}
.chord-display-next {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Chord Builder Modal & Glassmorphic Chips (Smartphone Style Alignment)
   ========================================================================== */

.chord-builder-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.chord-builder-modal-card {
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: rgba(25, 25, 35, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: inherit;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chord-builder-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chord-builder-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.chord-builder-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.chord-builder-close-btn:hover {
  color: #fff;
}

/* Chord Live Preview Display box */
.chord-preview-box {
  background: rgba(0, 0, 0, 0.25);
  margin: 0 24px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.chord-preview-sub {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.chord-preview-main {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 0 20px rgba(3, 218, 198, 0.4);
  letter-spacing: 0.5px;
}

.chord-builder-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chord-section-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Chips layout styles */
.chord-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Scrollable containers for long chip sections (Roots & Sevenths) */
.chord-chips-scrollable {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.chord-chips-scrollable::-webkit-scrollbar {
  height: 4px;
}

.chord-chips-scrollable::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}

/* Choice chip styling */
.chord-choice-chip {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.chord-choice-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.chord-choice-chip.active {
  background: rgba(3, 218, 198, 0.12);
  border-color: rgba(3, 218, 198, 0.4);
  color: var(--accent-green);
  box-shadow: 0 0 12px rgba(3, 218, 198, 0.15);
}

/* Playstyle selector element */
.chord-builder-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.chord-builder-select option {
  background: #14141e;
  color: #fff;
}

.chord-builder-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(0, 0, 0, 0.1);
}

.chord-builder-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.chord-builder-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.chord-builder-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chord-builder-btn-save {
  background: var(--accent-green);
  color: #12121a;
  box-shadow: 0 4px 16px rgba(3, 218, 198, 0.3);
}

.chord-builder-btn-save:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   DAW Timeline Block Drag & Edge Trim Resizing
   ========================================================================== */

/* Trimming / Resizing handles absolutely placed on the right edge */
.block-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  z-index: 10;
  border-radius: 0 5px 5px 0;
  transition: background 0.15s ease;
  user-select: none;
}

.block-resize-handle:hover {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.4);
}

.block-resize-handle:active {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: inset -2px 0 0 #fff;
}

/* Semi-transparent visualization feedback during active drag state */
.track-block.dragging {
  opacity: 0.75;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3) !important;
  z-index: 1000 !important;
  cursor: grabbing !important;
}

/* ==========================================================================
   DAW Configurable Grid Snapping Resolution Selector
   ========================================================================== */

.track-snap-container {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 12px;
  height: 32px;
  box-sizing: border-box;
}

.track-snap-container:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.track-snap-icon {
  font-size: 12px;
  opacity: 0.85;
}

.track-snap-select {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin: 0;
}

.track-snap-select option {
  background: #14141e;
  color: #fff;
  font-weight: 600;
  padding: 8px;
}

/* ==========================================
   PREMIUM DRAGGABLE & RESIZABLE WIDGETS
   ========================================== */

/* Active dragging premium visual feedback */
.dashboard-component-card.dragging-active {
  opacity: 0.85;
  transform: scale(1.02) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
  border-color: var(--widget-accent) !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
  z-index: 9999 !important;
}

/* Force absolute positioning for dynamic canvas overlay widgets */
.visualizer-dashboard .dashboard-component-card {
  position: absolute !important;
}

/* Glassmorphic premium resize handle */
.widget-resize-handle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  cursor: se-resize;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.widget-resize-handle::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent rgba(255, 255, 255, 0.35) transparent;
  transition: border-color 0.2s;
}

/* ========== DAW Volume Fader Web Custom Slider Styling ========== */
.channel-vol-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  box-shadow: 0 0 6px var(--accent-blue);
  transition: transform 0.15s ease;
}
.channel-vol-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}
.channel-vol-slider-input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px var(--accent-blue);
  transition: transform 0.15s ease;
}
.channel-vol-slider-input::-moz-range-thumb:hover {
  transform: scale(1.3);
}
.channel-vol-slider-input:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.channel-vol-slider-input:disabled::-webkit-slider-thumb {
  background: var(--text-muted);
  box-shadow: none;
}
.widget-resize-handle:hover::after {
  border-color: transparent transparent var(--accent-purple) transparent;
}

/* ========== PRACTICE LOGS & ANALYSIS ========== */
.practice-logs-panel-content {
  color: var(--text-primary);
  height: 100%;
}

.logs-cal-grid {
  margin-top: 10px;
}

.logs-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: var(--text-secondary);
}

.logs-cal-cell:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.logs-cal-cell.empty {
  cursor: default;
  background: transparent !important;
  border-color: transparent !important;
}

.logs-cal-cell.has-records {
  background: rgba(187, 134, 252, 0.15);
  color: var(--accent-purple);
  font-weight: 800;
  border: 1px solid rgba(187, 134, 252, 0.4);
  box-shadow: 0 0 10px rgba(187, 134, 252, 0.15);
}

.logs-cal-cell.has-records:hover {
  background: rgba(187, 134, 252, 0.3);
  box-shadow: 0 0 15px rgba(187, 134, 252, 0.4);
}

.logs-cal-cell.today {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.logs-cal-cell.today.has-records {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(187, 134, 252, 0.2));
  color: #fff;
  border-color: var(--accent-blue);
}

.logs-history-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.logs-history-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.chart-tooltip {
  position: absolute;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 11px;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-family: sans-serif;
  display: none;
}




