@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;600;700&display=swap');

:root {
  --cream: #fbf6ea;
  --sand: #f1e7cf;
  --ink: #283044;
  --teal: #2e9599;
  --coral: #e76f51;
  --gold: #efb366;
  --moss: #5b8c5a;
  --sky: #4f7cac;
  --rose: #d95d84;
  --card: rgba(255, 255, 255, 0.82);
  --border: rgba(40, 48, 68, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 179, 102, 0.28), transparent 42%),
    radial-gradient(circle at 85% 10%, rgba(217, 93, 132, 0.22), transparent 38%),
    radial-gradient(circle at 80% 82%, rgba(46, 149, 153, 0.2), transparent 45%),
    linear-gradient(150deg, #f8f2df 0%, #f7f7f1 45%, #f1f8f8 100%);
}

#app {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: transparent;
}

#app canvas:not(.minimap-canvas) {
  position: absolute;
  top: 0;
  left: 0;
}

/* Annotation input styling (for Phase 4) */
.annotation-input {
  position: absolute;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  outline: none;
  min-width: 100px;
  display: none;
}

.annotation-input:focus {
  border-color: rgba(46, 149, 153, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 149, 153, 0.15);
}

/* Toolbar styling */
.hexcrawl-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(24, 36, 52, 0.18);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  backdrop-filter: blur(8px);
}

.hexcrawl-toolbar button {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.14s ease;
  box-shadow: 0 3px 10px rgba(24, 36, 52, 0.12);
  min-width: 120px;
  text-align: center;
}

.hexcrawl-toolbar button:hover {
  background: rgba(46, 149, 153, 0.12);
  border-color: rgba(46, 149, 153, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(24, 36, 52, 0.16);
}

.hexcrawl-toolbar button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 7px rgba(24, 36, 52, 0.12);
}

.hexcrawl-toolbar button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(232, 236, 242, 0.9);
}

/* Suggestion panel styling */
.suggestion-panel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--card);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(24, 36, 52, 0.22);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 80%;
}

.suggestion-panel .suggestion-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.suggestion-panel .accept-btn {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  background: rgba(46, 149, 153, 0.14);
  border: 1px solid rgba(46, 149, 153, 0.35);
  border-radius: 10px;
  color: #1d5e61;
  cursor: pointer;
  transition: all 0.14s ease;
  box-shadow: 0 4px 10px rgba(24, 36, 52, 0.12);
}

.suggestion-panel .accept-btn:hover {
  background: rgba(46, 149, 153, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(24, 36, 52, 0.16);
}

.suggestion-panel .accept-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 7px rgba(24, 36, 52, 0.12);
}

.suggestion-panel .reject-btn {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  background: rgba(217, 93, 132, 0.15);
  border: 1px solid rgba(217, 93, 132, 0.35);
  border-radius: 10px;
  color: #78314e;
  cursor: pointer;
  transition: all 0.14s ease;
  box-shadow: 0 4px 10px rgba(24, 36, 52, 0.12);
}

.suggestion-panel .reject-btn:hover {
  background: rgba(217, 93, 132, 0.22);
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(24, 36, 52, 0.16);
}

.suggestion-panel .reject-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 7px rgba(24, 36, 52, 0.12);
}

.undo-tree-panel,
.undo-tree-content {
  backdrop-filter: blur(8px);
}
