#copyright-notice {
  position: fixed;
  right: 24px;
  bottom: 16px;
  color: #888;
  font-size: 14px;
  z-index: 1000;
  background: none;
  pointer-events: none;
  user-select: none;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background: #222;
  color: #fff;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  overflow: hidden; 
}

#home-container {
  min-height: 100vh;
  min-width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; 
  
}

#logo {
  width: 260px;      
  margin-bottom: 36px;
}

#home-container button {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 10px;
  width: 200px;
  margin: 6px auto;
  padding: 13px 18px; 
  font-size: 17px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s, transform 0.1s;
  font-weight: 500;
  text-align: left; 
}

#home-container button .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

#home-container button:hover {
  background-color: #444;
  transform: translateY(-2px) scale(1.03);
}

.start-thought {
  border: 2px solid blue !important;
}

.end-thought {
  border: 2px solid pink !important;
}

.highlight-path {
  border-width: 2px !important;
  border-image: linear-gradient(to right, blue, pink) 1 !important;
}


#contextMenu {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 5px 0;
  width: 160px;
  font-size: 14px;
  display: none;
  z-index: 9999;
  border-radius: 4px;
}

#contextMenu div {
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
}

#contextMenu div:hover {
  background-color: #eee;
}

#top-links {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.capsule-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px 7px 12px;
  background: #292929;
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #333;
  transition: background 0.18s, color 0.18s, border 0.18s;
}

.capsule-link .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.capsule-link:hover {
  background: #444;
  color: #aee6ff;
  border: 1px solid #555;
}

#about-version {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 320px;
  height: 140px;
  background: #292929;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  border: 1px solid #333;
  padding: 18px 20px 16px 20px;
  color: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.18s, border 0.18s;
}

.about-header {
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  color: #aee6ff;
}

.about-description {
  font-size: 1rem;
  font-weight: 400;
  color: #e0e0e0;
  line-height: 1.5;
  max-height: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  white-space: pre-line;
  width: 100%;
}


.settings-btn:not(.save):not(.cancel) {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #333 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  z-index: 100 !important;
  margin: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  color: #fff !important;
  display: flex !important;
}

.settings-btn:not(.save):not(.cancel):hover {
  background: #fff !important;
  color: #222 !important;
}

.settings-btn:not(.save):not(.cancel):hover svg circle {
  fill: #fff !important;
}

.settings-btn:not(.save):not(.cancel) svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}


.account-btn {
  position: fixed !important;
  bottom: 20px !important;
  left: 76px !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #333 !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s, color 0.2s !important;
  z-index: 100 !important;
  margin: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  color: #fff !important;
  display: flex !important;
}

.account-btn:hover {
  background: #fff !important;
  color: #222 !important;
}

.account-btn svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}


.account-dropdown {
  position: fixed;
  bottom: 76px;
  left: 76px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 101;
  min-width: 120px;
  padding: 4px 0;
  display: none;
}

.account-dropdown-item {
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.account-dropdown-item:hover:not(.disabled) {
  background: #333;
}

.account-dropdown-item.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.account-dropdown-item.login {
  color: #fff;
}

.account-dropdown-item.logout {
  color: #dc3545;
}

.account-dropdown-item.logout svg {
  color: #dc3545;
}


.settings-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.settings-popup-content {
  background: #2a2a2a;
  border-radius: 0px;
  width: 90%;
  max-width: 800px;
  height: 80%;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #444;
  position: relative;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #444;
  position: relative;
}

.settings-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  flex: 1;
  text-align: left;
}

.settings-close {
  background: none !important;
  border: none !important;
  color: #aaa !important;
  font-size: 24px !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  transition: none !important;
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transform: none !important;
}

.settings-close:hover {
  color: #fff !important;
  
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  font-size: 24px !important;
  position: absolute !important;
  right: 20px !important;
  top: 20px !important;
  box-sizing: border-box !important;
  outline: none !important;
  transform: none !important;
  transition: none !important;
}

.settings-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0; 
}

.settings-sidebar {
  width: 200px;
  background: #333;
  padding: 20px 0;
  border-right: 1px solid #444;
}

.settings-nav-item {
  padding: 12px 24px;
  cursor: pointer;
  color: #ccc;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.settings-nav-item:hover {
  background: #3a3a3a;
  color: #fff;
}

.settings-nav-item.active {
  background: #3a3a3a;
  color: #fff;
  border-left-color: #fff;
}

.settings-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.settings-tab {
  display: none !important;
}

.settings-tab.active {
  display: block !important;
}

.settings-tab h3 {
  margin: 0 0 24px 0;
  color: #fff;
  font-size: 1.25rem;
  border-bottom: 1px solid #444;
  padding-bottom: 12px;
}

.settings-group {
  margin-bottom: 32px;
}

.settings-group:last-child {
  margin-bottom: 0;
}


.cache-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.cache-item:last-child {
  margin-top: 16px;
  padding-top: 16px;
}

.cache-label {
  color: #e0e0e0;
  font-size: 15px;
  flex: 1;
}


.action-btn {
  background: #222 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: none !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transform: none !important;
  position: relative !important;
}

.action-btn:hover {
  background: #444 !important;
  
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
}

.action-btn.clear-all {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 8px !important;
}

.action-btn.clear-all:hover {
  width: 100% !important;
  margin-left: 0 !important;
  margin-top: 8px !important;
  background: #444 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  min-height: 32px !important;
  max-height: 32px !important;
  height: 32px !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
}


.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toggle-switch {
  width: 32px;
  height: 18px;
  background: #bbb;
  border-radius: 0;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  border: 1px solid #ccc;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #fff;
  top: 1px;
  left: 1px;
  transition: transform 0.2s;
  box-shadow: none;
  border: 1px solid #ccc;
}

.toggle-switch.active {
  background: #4af;
  border-color: #4af;
}

.toggle-switch.active::after {
  transform: translateX(15px);
}

.toggle-label {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}


.login-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 16px;
  background: #222 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  cursor: pointer;
  transition: background 0.2s, color 0.2s !important;
  box-sizing: border-box;
  min-width: fit-content;
}

.login-prompt:hover {
  background: #444 !important;
  color: #fff !important;
  
}

.prompt-logo {
  width: 24px;
  height: 24px;
}

.prompt-text {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}


.cache-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.cache-label {
  color: #fff;
  font-size: 16px;
}

.action-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.action-btn:hover {
  background: #c82333;
}

.action-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.clear-all {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  font-size: 16px;
}


.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: #222;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  color: #f0f6fc;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

.form-group input:disabled {
  background: #333;
  color: #888;
  cursor: not-allowed;
  border-color: #444;
}

.username-availability {
  margin-top: 4px;
  font-size: 12px;
}

.username-availability.available {
  color: #28a745;
}

.username-availability.unavailable {
  color: #dc3545;
}

.username-availability.checking {
  color: #ffc107;
}


.settings-footer {
  flex-shrink: 0; 
  height: 56px;
  background: #2a2a2a;
  border-top: 1px solid #444;
  box-sizing: border-box;
}

.settings-footer-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.settings-footer-buttons {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.settings-btn.cancel,
.settings-btn.save {
  background: #222 !important;
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: none !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transform: none !important;
  position: relative !important;
}

.settings-btn.cancel:hover,
.settings-btn.save:hover {
  background: #444 !important;
  
  color: #bbb !important;
  border: 1px solid #444 !important;
  border-radius: 0 !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  margin-left: auto !important;
  box-sizing: border-box !important;
  min-width: fit-content !important;
  max-width: none !important;
  width: auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  transition: none !important;
  transform: none !important;
  position: relative !important;
}

.settings-btn.save {
  background: #0066cc;
}

.settings-btn.save:hover {
  background: #0077dd;
}