/* === Light Airy Productivity Theme: Improved === */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #f5f7fa;
  color: #222;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

body,
#root {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.app-container {
  display: flex;
  gap: 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
  padding: 40px 48px;
  margin: 48px 0;
  min-width: 320px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.sidebar {
  min-width: 240px;
  max-width: 320px;
  width: 100%;
  padding-right: 32px;
  border-right: 1.5px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 520px;
  max-height: 70vh;
  overflow: hidden;
  box-sizing: border-box;
}

.sidebar h2 {
  font-size: 1.1rem;
  margin: 0 0 14px 0;
  font-weight: 600;
  color: #3b82f6;
  letter-spacing: 0.5px;
}

.sidebar label,
.sidebar span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 1rem;
  color: #374151;
}

.sidebar .bar-configs-list {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 18px;
  padding-right: 4px;
  max-height: 340px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.sidebar .bar-card {
  background: #f3f6fa;
  border-radius: 12px;
  padding: 18px 14px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.04);
  border: 1.5px solid #e5e7eb;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.sidebar .bar-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.sidebar .bar-card input,
.sidebar .bar-card select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  color: #222;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
  margin-top: 0;
}

.sidebar .bar-card input:focus,
.sidebar .bar-card select:focus {
  border: 1.5px solid #3b82f6;
}

.sidebar button {
  width: 100%;
  margin-top: 10px;
  padding: 12px 0;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.sidebar button:hover {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.13);
}

/* Main controls */
.main-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  min-width: 0;
}

.bpm-control {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 22px;
  min-width: 0;
}

.bpm-control span {
  font-size: 1.13rem;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 0.5px;
}

.bpm-control input[type="range"] {
  width: 130px;
  accent-color: #3b82f6;
  background: transparent;
}

.bpm-control select {
  padding: 7px 10px;
  border-radius: 7px;
  border: 1.5px solid #d1d5db;
  font-size: 1rem;
  background: #fff;
  color: #222;
  outline: none;
  transition: border 0.2s;
}
.bpm-control select:focus {
  border: 1.5px solid #3b82f6;
}

.startstop {
  margin: 22px 0 0 0;
}

.startstop button {
  padding: 14px 44px;
  font-size: 1.15rem;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.startstop button:hover {
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.13);
}
.startstop button:disabled {
  background: #d1d5db;
  color: #888;
  cursor: not-allowed;
}

/* Beat dots */
.beat-dots {
  display: flex;
  gap: 18px;
  margin-top: 34px;
  justify-content: center;
}

.beat-dots span {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2.5px solid #c7d2fe;
  transition:
    background 0.2s,
    border 0.2s,
    box-shadow 0.2s;
}

.beat-dots span.active {
  background: linear-gradient(135deg, #3b82f6 60%, #60a5fa 100%);
  border: 2.5px solid #2563eb;
  box-shadow: 0 0 0 4px #93c5fd;
}

/* Responsive and scroll improvements */
@media (max-width: 1100px) {
  .app-container {
    flex-direction: column;
    padding: 28px 8px;
    margin: 28px 0;
    max-width: 98vw;
  }
  .sidebar {
    border-right: none;
    border-bottom: 1.5px solid #e5e7eb;
    padding-right: 0;
    padding-bottom: 18px;
    margin-bottom: 18px;
    max-width: 100%;
    height: 340px;
    max-height: 50vh;
  }
}

@media (max-width: 700px) {
  .app-container {
    padding: 8px 2vw;
  }
  .sidebar {
    min-width: 0;
    max-width: 100vw;
    padding-right: 0;
  }
}
