.top-buttons button.next-step {
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(60,72,88,0.07);
  border: none;
  opacity: 1;
  cursor: pointer;
}
nav.sidebar {
  background: #f6f7fa;
  color: #222;
  min-width: 340px;
  max-width: 400px;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(60,72,88,0.10);
  border: 1px solid #e3e7eb;
  padding: 16px 0 20px 0;
  margin: 0;
  transition: box-shadow 0.2s, background 0.3s;
}
nav.sidebar .nav-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px 12px 28px;
  border-bottom: 1px solid #e3e7eb;
  margin-bottom: 12px;
}
nav.sidebar .nav-header {
  font-weight: 700;
  font-size: 1.25rem;
  color: #222;
  padding: 0;
  border: none;
  letter-spacing: 0.5px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
nav.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0;
}
nav.sidebar ul li {
  margin: 0;
  padding: 0;
}
nav.sidebar ul li button {
  width: 100%;
  background: none;
  border: none;
  color: #222;
  font-size: 1.07rem;
  font-weight: 500;
  padding: 10px 28px;
  border-radius: 8px;
  margin-bottom: 2px;
  text-align: left;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: none;
  font-family: 'Segoe UI', Arial, sans-serif;
}

nav.sidebar ul li button {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 1.13rem;
  font-family: inherit;
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  transition: background 0.18s, color 0.18s, opacity 0.18s;
  cursor: pointer;
}

nav.sidebar ul li button.btn-disabled,
nav.sidebar ul li button:disabled,
.top-buttons button.btn-disabled,
.top-buttons button:disabled {
  background: #f6f7fa !important;
  color: #b0b3b8 !important;
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}
nav.sidebar ul li button:hover,
  nav.sidebar ul li button.active {
  background: #e3e7eb;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(60,72,88,0.07);
}
nav.sidebar ul .submenu {
  list-style: none;
  padding-left: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid #e3e7eb;
  margin-left: 8px;
}
nav.sidebar ul .submenu > li > a > button {
  font-size: 0.99rem;
  font-weight: 400;
  padding-left: 28px;
  background: none;
  color: #444;
  border-radius: 7px;
}
nav.sidebar ul .submenu > li > a > button:hover {
  background: #e3e7eb;
  color: #2563eb;
}
nav.sidebar ul .submenu .submenu {
  padding-left: 10px;
  border-left: 2px dashed #e3e7eb;
  margin-left: 6px;
}
nav.sidebar ul .submenu .submenu > li > a > button {
  font-size: 0.97rem;
  font-weight: 400;
  padding-left: 36px;
  color: #888;
  border-radius: 6px;
}
nav.sidebar ul .submenu .submenu > li > a > button:hover {
  background: #e3e7eb;
  color: #2563eb;
}
nav.sidebar .toggle-btn {
  background: #e3e7eb;
  color: #222;
  border: none;
  border-radius: 7px;
  font-size: 1.25rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
nav.sidebar .toggle-btn:hover {
  background: #d1d5db;
  color: #2563eb;
}
nav.sidebar.collapsed {
  min-width: 60px;
  max-width: 60px;
  padding: 18px 0;
}
nav.sidebar.collapsed .nav-header-row {
  padding: 0 8px 10px 8px;
}
nav.sidebar.collapsed ul li button span.text {
  display: none;
}
nav.sidebar ul li {
  margin-bottom: 2px;
}
@media (max-width: 900px) {
  nav.sidebar {
    min-width: 60px;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }
  nav.sidebar .nav-header-row {
    padding: 0 10px 10px 10px;
  }
}
nav.sidebar .nav-header {
  font-weight: 700;
  font-size: 1.3rem;
  color: #191919;
  padding: 0;
  border: none;
}
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI Emoji', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #F4F8FB;
  color: #263238;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: #1976D2;
  color: white;
  padding: 20px 40px;
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  user-select: none;
  flex-shrink: 0;
}

.container {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 80px - 40px); 
}

nav.sidebar {
  background-color: white;
  width: 280px;
  border-right: 1px solid #E3E7EB;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  transition: width 0.3s ease;
}
nav.sidebar.collapsed {
  width: 70px;
}

nav.sidebar .nav-header {
  font-weight: 700;
  font-size: 1.3rem;
  color: #191919;
  padding: 0 20px 10px;
  border-bottom: 1px solid #E3E7EB;
  user-select: none;
}

nav.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
nav.sidebar ul li {
  padding: 0 20px;
}

nav.sidebar ul li button {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #68737d;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
}
nav.sidebar ul li button:hover {
  background-color: #1565C0;
  color: white;
}
nav.sidebar ul li button.active {
  background-color: #1976D2;
  color: white;
}

nav.sidebar.collapsed ul li button span.text {
  display: none;
}

nav.sidebar .toggle-btn {
  border: none;
  background: none;
  font-size: 1.8rem;
  color: #191919;
  cursor: pointer;
  padding: 12px 20px;
  align-self: flex-end;
  user-select: none;
}
nav.sidebar .toggle-btn:hover {
  background-color: #E3E7EB;
  border-radius: 8px;
}

main.content {
  flex: 1;
  background-color: white;
  padding: 30px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.top-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.top-buttons button {
  background-color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  color: #68737d;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s, color 0.3s;
  user-select: none;
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.top-buttons button:hover {
  background-color: #3874fe;
  color: white;
}
.top-buttons button.selected {
  background-color: #1976D2;
  color: white;
}
.top-buttons button.completed {
  background-color: #1976D2;
  color: white;
}

footer {
  background-color: #E3E7EB;
  color: #1976D2;
  font-style: italic;
  font-size: 1rem;
  padding: 10px 40px;
  text-align: center;
  flex-shrink: 0;
  user-select: none;
}

.icon {
  font-size: 1.3rem;
  user-select: none;
}

main.content::-webkit-scrollbar {
  width: 10px;
}
main.content::-webkit-scrollbar-track {
  background: #f4f8fb;
}
main.content::-webkit-scrollbar-thumb {
  background-color: #1976D2;
  border-radius: 10px;
  border: 2px solid #f4f8fb;
}
