:root {
  --bg: #f8f9fa;
  --nav-bg: #ffffff;
  --text: #1f2d3a;
  --muted: #6c757d;
  --transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
  --bg: #1f2336;
  --nav-bg: #1f2336;
  --text: #e3e8ff;
  --muted: #8a9bb8;
}

html, body {
  height: 100%;
}


/* Кнопка переходу */
.btn-go-albums {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    border: none;
    background-color: #0d6efd;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-go-albums:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* спочатку приховано */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
}

/* контейнер прогрес бару */
#ProgressBar {
  width: 70%;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

/* заповнення прогрес бару */
#ProgressFill {
  height: 100%;
  width: 0%;
  background: #0d6efd; /* bootstrap primary */
  border-radius: 10px;
  transition: width 0.1s linear;
}




body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  transition: var(--transition);
}

/* Навбар */
.navbar-custom {
  background: var(--nav-bg);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

[data-theme="dark"] .navbar-custom {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}

/* Welcome секція */
.welcome-section {
  min-height: calc(100vh - 70px);
  padding: 2rem;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-text {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  transition: var(--transition);
}

/* Кнопка */
.btn-primary {
  background-color: #0d6efd;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13,110,253,0.3);
}

/* Кнопка зміни теми */
.theme-btn {
  background: rgba(108, 99, 255, 0.1);
  border: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.theme-btn:hover {
  background: rgba(108, 99, 255, 0.2);
}
.theme-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-label {
  user-select: none;
}

/* Анімація іконки теми */
.theme-icon {
  font-size: 1.1rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.theme-icon.switching {
  transform: rotate(180deg) scale(1.3);
  opacity: 0.5;
}