:root {
  --bg: #121212;
  --text: #f0f0f0;
  --accent: #00adb5;
  --border: #333;
  --input-bg: #1f1f1f;
  --font-mono: "Fira Code", monospace;
  --font-hand: "Patrick Hand", cursive;
}

/* Base */
body,
.nc-root,
.nc-app,
.nc-app > div {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-mono);
}

/* Header */
.nc-header {
  background-color: #1a1a1a !important;
  border-bottom: 1px solid var(--border);
}
.nc-header-title {
  font-family: var(--font-hand);
  color: var(--accent) !important;
  font-size: 1.5rem;
}
.nc-header a,
.nc-nav-control {
  color: var(--accent) !important;
}

/* Sidebar */
.nc-sidebar {
  background-color: #171717 !important;
  border-right: 1px solid var(--border);
}
.nc-sidebar-nav a {
  color: var(--text) !important;
}
.nc-sidebar-heading {
  font-family: var(--font-hand);
  color: var(--accent);
}

/* Main content */
.nc-entryEditor,
.nc-collectionPage,
.nc-workflow {
  background-color: var(--bg) !important;
  color: var(--text);
  padding: 1rem;
  box-sizing: border-box;
}

/* Inputs */
.nc-entryEditor input,
.nc-entryEditor textarea,
.nc-entryEditor select {
  background-color: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem;
  font-size: 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
}
.nc-entryEditor input:focus,
.nc-entryEditor textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* 🔵 Buttons - Primary Actions */
.nc-button,
.nc-button-primary,
button[class*="nc-button"] {
  background-color: var(--accent) !important;
  color: #000 !important; /* contrast with accent */
  border: none;
  font-weight: bold;
}

/* 🟡 Secondary Buttons (like 'New Note', 'Sort by') */
.nc-collectionTop .nc-button {
  background-color: #2a2a2a !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

/* 🔘 Inputs & dropdown fix */
.nc-entryEditor select {
  background-color: var(--input-bg);
  color: var(--text);
}

/* 🧊 Fix for toggles / dropdowns / filter buttons */
button[class*="nc-controlPane-button"],
button[class*="nc-collectionControls-sort"] {
  background-color: #1c1c1c !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

/* 🧼 Button hover */
.nc-button:hover,
button[class*="nc-button"]:hover {
  background-color: #09bbc1 !important;
  color: #000 !important;
  cursor: pointer;
}


/* Scrollbars */
*::-webkit-scrollbar {
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: var(--bg);
}
*::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 6px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .nc-header,
  .nc-sidebar,
  .nc-entryEditor,
  .nc-toolbar {
    font-size: 14px;
  }

  .nc-sidebar {
    width: 100vw;
    height: auto;
    position: fixed;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
  }

  .nc-sidebar-nav a {
    display: block;
    padding: 1rem;
  }

  .nc-toolbar {
    position: sticky;
    bottom: 0;
    background-color: #181818;
    padding: 1rem;
    border-top: 1px solid var(--border);
  }
}
