.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #04202b;
}

.btn:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.big-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.big-tile .tile-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 10px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.equip-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.equip-card .equip-name {
  font-weight: 600;
  font-size: 15px;
}

.equip-card .equip-count {
  font-size: 12px;
  color: var(--text-muted);
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--priority-medium);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 12px 14px;
  cursor: pointer;
}

.note-card.priority-high { border-left-color: var(--priority-high); }
.note-card.priority-medium { border-left-color: var(--priority-medium); }
.note-card.priority-low { border-left-color: var(--priority-low); }

.note-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.note-card-title {
  font-weight: 600;
  font-size: 14.5px;
}

.note-card-pin {
  color: var(--pin-color);
  font-size: 14px;
}

.note-card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.badge {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

.badge-high { background: var(--priority-high); }
.badge-medium { background: var(--priority-medium); }
.badge-low { background: var(--priority-low); }

.search-bar {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-box h2 {
  margin-top: 0;
  font-size: 17px;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0 6px;
  display: block;
}

.text-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

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

.priority-option {
  flex: 1;
  padding: 8px;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.priority-option.selected-high { border-color: var(--priority-high); background: rgba(239,68,68,0.1); }
.priority-option.selected-medium { border-color: var(--priority-medium); background: rgba(245,158,11,0.1); }
.priority-option.selected-low { border-color: var(--priority-low); background: rgba(34,197,94,0.1); }

.editor-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.toolbar-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.rich-editor {
  min-height: 140px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  overflow-y: auto;
}

.rich-editor ul {
  margin: 4px 0;
  padding-left: 20px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.modal-actions .btn {
  flex: 1;
}

.pin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}

.keypad {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  max-width: 280px;
  margin: 24px auto 0;
}

.key-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
}

.key-btn:active {
  background: var(--accent);
  color: white;
}

.login-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.login-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
}

.login-dot.filled {
  background: var(--accent);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 16px;
  font-size: 14px;
}

.alpha-group-header {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin: 18px 0 8px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--header-bg);
  color: white;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

#btn-floating-home {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #04202b;
  border: none;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-floating-home:active {
  transform: scale(0.94);
}
