/* main.css */
:root {
  --color-1: #000;
  --color-2: #fff;
  --font-size-frontend: 24px;
  --font-size-buttons: 12px;
  --font-size-backend: 12px;
  --font-family-mono: 'SF Mono', 'Consolas', 'Courier New', monospace;
}
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: var(--color-1);
  color: var(--color-2);
  font-family: var(--font-family-mono);
}
.main-content {
  height: 100%;
  overflow-y: auto;
  padding: 2rem;
}

h1, h2, h3, p, input, div {
  font-size: var(--font-size-frontend) !important;
  font-family: var(--font-family-mono) !important;
}
.btn, button, .btn-sm, .btn-outline-light {
  font-size: var(--font-size-buttons) !important;
}
input, .option, .backend-input {
  font-size: var(--font-size-backend) !important;
}

.icon-link svg {
  fill: #fff;
  filter: drop-shadow(0 0 2px #fff8);
}

.icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.2s linear;
}
.icon-grid svg {
  fill: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.icon-grid svg:hover {
  opacity: 1;
  filter: drop-shadow(0 0 8px #fff8);
  transform: scale(1.08);
}

.form-control {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.song-row {
  border: none;
  background: transparent;
  margin-bottom: 0.5em;
}

.line[contenteditable="true"] {
  outline: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1em;
  padding: 0.2em 0.5em;
  min-height: 1.2em;
  transition: background 0.2s;
}
.line[contenteditable="true"]:focus {
  background: #222;
  text-shadow: 0 0 8px rgba(255,255,255,0.18);
  box-shadow: 0 2px 16px 0 rgba(255,255,255,0.10);
}

.modal-blur {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content-minimal {
  background: rgba(20,20,20,0.95);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 32px #000a;
  padding: 2em 2em;
  min-width: 300px;
  max-width: 90vw;
}

.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;
  align-items: center;
  z-index: 100;
}

.nav-icon svg {
  fill: var(--color-2);
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.nav-icon:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

/* Row Layout for list items */
.row-layout {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 0.5rem 0;
  transition: background-color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.04);
}

.row-layout:hover {
    background-color: #111;
    box-shadow: 0 4px 24px 0 rgba(255,255,255,0.08);
}

.row-layout > .left {
  width: 20%;
  text-align: right;
  padding-right: 1rem;
}

.row-layout > .center {
  width: 60%;
  text-align: left;
}

.row-layout > .right {
  width: 20%;
  text-align: left;
  padding-left: 1rem;
}

[contenteditable="true"] {
  outline: none;
  transition: text-shadow 0.3s ease;
}

[contenteditable="true"]:focus {
  text-shadow: 0 0 8px rgba(255,255,255,0.18);
  box-shadow: 0 2px 16px 0 rgba(255,255,255,0.10);
}

@media (max-width: 768px) {
  .row-layout {
    flex-direction: column;
    align-items: flex-start;
  }
  .row-layout > .left,
  .row-layout > .center,
  .row-layout > .right {
    width: 100%;
    text-align: left;
    padding: 0;
  }
  .global-nav {
    width: 100%;
    height: 50px;
    flex-direction: row;
    bottom: auto;
    top: 0;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 2em;
  }
  .modal-content-minimal {
    min-width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    padding: 1em 0.5em;
  }
}
