:root {
  --honey-color: #FFB3000;
}

.about-section-container::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

.about-section-container {
  overflow-y: auto;
  padding: 0 20px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

.benefit-item strong {
  color: #ffb300;
}

.delete-btn,
.complete-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}

.delete-btn {
  border: 1px solid rgba(255, 82, 82, 0.5);
  font-size: 16px;
  filter: grayscale(1);
  opacity: 0.7;
}

.delete-btn:active {
  background: rgba(255, 82, 82, 0.2);
  filter: grayscale(0);
  opacity: 1;
  transform: scale(0.9);
}

.close-btn {
  cursor: pointer;
}

.complete-btn {
  border: 2px solid #ffb300;
  color: #ffb300;
  font-weight: bold;
}

.complete-btn:active {
  background: #ffb300;
  color: white;
  transform: scale(0.9);
}

.about-section {
  margin-bottom: 25px;
  line-height: 1.5;
}

.about-section h3 {
  color: #ffb300;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.app-header {
  background-color: #1a1a1a;
  padding: 15px 20px 0 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
  border-top: none;
}

.app-title {
  margin: 0;
  font-size: 22px;
  gap: 8px;
  text-align: center;
  flex-grow: 1;
}

#add-btn {
  flex-shrink: 0;
  background: #ffb300;
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}

#add-btn:active {
  transform: scale(0.95);
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.benefit-item .icon {
  font-size: 1.5rem;
}

.benefit-item p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 4px 0 0 0;
}

.completion-date {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
  display: block;
  font-style: italic;
}

.empty-state {
  text-align: center;
  color: #666;
  margin-top: 40px;
  font-style: italic;
}

.filters-container {
  padding: 20px;
  background: transparent;
}

.filters {
  background: #222;
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-row {
  display: flex;
  gap: 10px;
}
.filter-row input,
.filter-row select {
  background: #333;
  border: 1px solid #444;
  color: white;
  padding: 8px;
  border-radius: 6px;
  flex: 1;
}

.gitlab-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #e24329;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: opacity 0.2s;
}

.gitlab-btn:hover {
  opacity: 0.9;
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.highlight {
  background: rgba(255, 179, 0, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 1px dashed #ffb300;
}

.hotkeys-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.hotkeys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.hotkey-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ccc;
}

kbd {
  background-color: #333;
  border-radius: 4px;
  border: 1px solid #555;
  border-bottom: 3px solid #111;
  color: #ffb300;
  display: inline-block;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
}

.icon-btn {
  display: flex !important;
  background: transparent;
  border: 2px solid;
  color: var(--honey-color) !important;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-family: serif;
  font-style: italic;
  font-weight: bold;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--honey-color);
  color: #000;
}

.info-btn {
  position: absolute;
  right: 5px;
  background: none;
  border: 1.5px solid #ffb300;
  color: #ffb300;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: serif;
  font-style: italic;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: opacity 0.2s;
}

.info-btn:hover {
  background: rgba(255, 179, 0, 0.1);
}

.install-steps {
  padding-left: 20px;
  font-size: 0.9rem;
  margin: 10px 0;
}

.quick-add {
  margin: 20px;
  display: flex;
  gap: 8px;
  box-sizing: border-box;
}

.project-title {
  font-size: 1.5rem;
  color: #ffb300;
  margin: 0;
}

#load-more-btn {
  width: 100%;
  padding: 12px;
  margin: 20px 0;
  background: transparent;
  border: 2px dashed var(--accent);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#load-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

.link-btn {
  background: none;
  border: none;
  color: #ffb300;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 42, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a1a;
  border-radius: 15px 15px 0 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-content {
  background: #1a1a1a;
  color: #fff;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  border-radius: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.modal-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #333;
  padding-top: 15px;
}

.order-btn {
  background: #2a2a2a;
  border: 1px solid #444;
  color: #888;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.order-btn:hover {
  color: #ffb300;
  border-color: #ffb300;
}

.priority-arrows {
  display: inline-flex;
  gap: 8px;
}

.tag-badge {
  color: #ffb300;
  margin: 2px;
}

.task-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}

#task-input {
  flex: 1;
  min-width: 0;
  background: #222;
  border: 1px solid #444;
  border-radius: 12px;
  padding: 12px 15px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

#task-input:focus {
  outline: none;
  border-color: #ffb300;
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.2);
}

.task-item {
  background: #222;
  border-radius: 15px;
  padding: 12px 16px;
  margin-bottom: 12px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  border: 1px solid #333;
  box-sizing: border-box;
}

.task-item.removing {
  transform: translateX(100%);
  opacity: 0;
}

.task-main {
  flex: 1;
  min-width: 0;
  margin-right: 12px;
}

.task-title {
  color: #eee;
  font-size: 1rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.tab-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #ffb300;
  border-bottom-color: #ffb300;
}

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

.toast-container {
  position: fixed;
  width: 250px;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
  text-align: center;
}

.toast {
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
  background: #ffb300;
  color: #000;
}

.toast.error {
  background: #ff5252;
  color: #fff;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.repo-link {
  margin: 20px 0;
  padding: 10px;
  background: #ed8c0d;
  border-radius: 8px;
}

.repo-link a {
  color: var(--honey-color);
  text-decoration: none;
  font-weight: bold;
}

.spacer .icon-btn {
  width: 30px;
  flex-shrink: 0;
}
.spacer {
  visibility: hidden;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px;
  justify-content: center;
  overflow-y: auto;
  max-height: 50vh;
  -webkit-overflow-scrolling: touch;
}

.tag-cloud::-webkit-scrollbar {
  width: 6px;
}

.tag-cloud::-webkit-scrollbar-track {
  background: transparent;
}

.tag-chip {
  background: rgba(255, 179, 0, 0.1);
  border: 1px solid #ffb300;
  color: #ffb300;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.2s;
}

.tag-chip.active {
  background: #ffb300;
  color: #fff;
}

.tag-chip.clear {
  border-color: #ff4444;
  color: #ff4444;
}

.task-order-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 10px;
}

.task-item:first-child .order-btn:first-child {
  visibility: hidden;
}
.task-item:last-child .order-btn:last-child {
  visibility: hidden;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
}

.modal-overlay.hidden {
  display: none;
  opacity: 0;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 70vh;
  background: #1e1e1e;
  border-radius: 20px 20px 0 0;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  max-height: 80vh;
}

.bottom-sheet.hidden {
  transform: translateY(100%);
  display: none;
}

.sheet-header {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #333;
  position: relative;
  color: #ffb300;
}

.handle {
  width: 40px;
  height: 4px;
  background: #444;
  border-radius: 2px;
  margin: 0 auto 10px;
}

.close-sheet {
  position: absolute;
  right: 15px;
  top: 15px;
  background: none;
  border: none;
  color: #888;
  font-size: 20px;
  cursor: pointer;
}

.settings-card {
  background: #1a1a1a;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid #333;
}

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

.settings-item p {
  margin: 0;
  font-weight: 500;
}

.settings-action-btn {
  background: #2a2a2a;
  color: #ffb300;
  border: 1px solid #ffb300;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.btn-danger {
  background: #441111;
  color: #ff4444;
  border: 1px solid #ff4444;
  padding: 10px 15px;
  border-radius: 8px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
}

.settings-btn {
  position: absolute;
  right: 40px;
  background: none;
  border: 1.5px solid #ffb300;
  color: #ffb300;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: serif;
  font-style: italic;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: opacity 0.2s;
}

.settings-btn:hover {
  background: rgba(255, 179, 0, 0.1);
}
.settings-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}
.settings-divider {
  border: 0;
  border-top: 1px solid #333;
  margin: 10px 0;
}

.danger-zone {
  flex-direction: column;
  align-items: flex-start;
}

.settings-modal {
  text-align: center;
  align-items: center;
}

#lang-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #1a1a1a;
  color: #ffb300;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px 32px 8px 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

#lang-select:hover {
  border-color: #ffb300;
  background-color: #222;
}

#lang-select:focus {
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

#lang-select option {
  background-color: #1a1a1a;
  color: #fff;
}
