/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/styles/globals.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*
Theme Name: Repertorio Theme
Theme URI: https://repertorio.net/
Author: Vasilis Antoniou
Author URI: https://computerservice.com.gr
Description: Custom theme for Repertorio.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: repertorio
*/

/* =========================================================
   0) Base typography / base colors (VERY GLOBAL RULES)
   ========================================================= */

/* Προσοχή: εξαιρετικά γενικό rule. Το κρατάμε όπως είναι. */
h4,
p,
a,
div,
span,
ul,
li,
button,
main,
article {
  font-size: 15px;
  color: white;
}

label,
input {
  font-size: 15px;
  color: rgb(0, 0, 0);
}

body {
  font-family: Verdana, sans-serif;
}

/* =========================================================
   1) Page layout (html/body/main/footer)
   ========================================================= */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* fills the vertical space */
}

main,
article,
.profile {
  background-color: #000000;
}

/* =========================================================
   2) Links
   ========================================================= */

a {
  text-decoration: none;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  transform: translateY(-2px);
  text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   3) Header: container + responsive
   ========================================================= */

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .header-search {
    flex-basis: 100%;
    order: 1;
    margin-top: 10px;
  }

  .header-logo,
  .header-buttons,
  .header-main-menu {
    flex-basis: auto;
    margin-top: 0;
    order: 0;
  }
}

.header-logo img {
  max-width: 31px;
  height: auto;
}

/* =========================================================
   4) Header: search
   ========================================================= */

.header-search {
  display: flex;
  align-items: center;
  max-width: 300px;
  flex-grow: 10;
  margin: 0 20px;
  align-items: stretch;
  margin-left: auto;
  background-color: #fff;
  border-radius: 30px;
  height: 40px;
}

.header-search input[type="text"] {
  padding: 10px;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  color: #000000;
  height: 100%;
  box-sizing: border-box;
  border-radius: 5px 0 0 5px;
}

.header-search button {
  background-color: #ffffff;
  border: none;
  padding: 0 12px 0 5px;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
  color: #040000;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

/* Clear search button */
.clear-search {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
}

.clear-search:hover {
  color: #333;
}

/* =========================================================
   5) Header: buttons + menu
   ========================================================= */

.header-buttons {
  margin-left: auto;
  display: flex;
  gap: 13px;
  align-items: center;
}

.header-buttons > :last-child {
  margin-right: 10px;
}

.header-buttons button,
.header-buttons a {
  width: 30px;
  height: 30px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header-buttons button:hover,
.header-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

/* Rooms button special */
.header-buttons a.rooms-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  background-color: transparent;
  color: #aaaaaa;
  font-size: 22px;
}

.header-buttons a.rooms-button .rooms-icon {
  font-size: 22px;
  line-height: 1;
}

/* Main menu */
.header-main-menu {
  font-size: 1.2em;
  padding: 10px 1px;
  margin-left: 5px;
  transform: scale(1.2);
  transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

/* Consolidated: menu-toggle (ήταν διπλό) */
.header-main-menu button.menu-toggle {
  font-size: 18px;
  padding: 8px;
  width: 40px;
  height: 40px;
  background-color: #444;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

/* =========================================================
   6) Generic buttons (global)
   ========================================================= */

button,
.button-style,
input[type="button"],
input[type="submit"],
a.button-style,
button.menu-button,
.header-main-menu button.menu-toggle {
  display: inline-block;
  padding: 10px 8px;
  margin: 1px;
  font-size: 12px;
  font-weight: 200;
  text-align: center;
  color: #fff;
  background-color: #444;
  border: 1px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0px 4px 6px rgba(135, 132, 132, 0.1);
  cursor: pointer;
}

button:hover,
.button-style:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.button-style:hover {
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

button:active,
.button-style:active,
input[type="button"]:active,
input[type="submit"]:active,
a.button-style:active {
  background-color: #003a80;
  box-shadow: 0px 3px 4px rgba(0, 0, 0, 0.1);
}

button:disabled,
.button-style:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

a.button-style {
  color: #fff;
  padding: 8px 16px;
}

.icon-left {
  direction: ltr;
  text-align: left;
}

/* Small edit button */
button.edit-button {
  margin: 0;
  transform: translateY(-5px);
  background-color: transparent;
  font-size: 10px !important;
  font-weight: 100;
  box-shadow: none;
  padding: 0%;
  padding-left: 5px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

/* =========================================================
   7) Filters controls (#filters, search filters)
   ========================================================= */

#search-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px; /* ήταν "2" */
  width: 100%;
}

.search-group-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 5px;
}

.search-group-filters-dropbox label {
  text-align: left;
  display: block;
}

.search-group-filters-dropbox select {
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  width: 100%;
}

.search-filter-option {
  border-radius: 10px !important;
}

.search-filter-option,
#apply-filters {
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  background-color: #f0f0f0;
  color: #333;
  border-radius: 10px;
  transition: background-color 0.3s;
}

.search-filter-option.selected {
  background-color: #4c7aaf;
  color: white;
  border-radius: 10px;
}

.search-filter-option:hover,
#apply-filters:hover {
  background-color: #4c7aaf;
  border-radius: 10px;
}

#apply-filters {
  margin-top: auto;
  align-self: flex-end;
  background-color: #4c7aaf;
  color: white;
  font-size: 16px;
  height: 30px;
}

/* Consolidated: #filters button was duplicated */
#filters {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  gap: 1px;
  flex-wrap: wrap;
}

#filters button {
  gap: 5px;
  height: 40px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  text-align: center;
  box-sizing: border-box;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  background-color: #444;
  color: #fff;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

#filters button:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}

/* =========================================================
   8) Button groups / containers
   ========================================================= */

div.list-buttons button {
  height: 60px;
}

/* Generic button container */
.button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  flex-wrap: wrap;
}

.button-container .button {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #444;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  text-align: center;
  box-sizing: border-box;
  font-size: 14px;
}

.button-container button,
.button-container .song-sheet-button button,
.button-container .youtube-button,
.button-container .menu-button-wrapper > button {
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.button-container .button:hover {
  background-color: #005bb5;
  transform: translateY(-2px);
}

/* Small button container */
.small-button-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.small-button-container button {
  background-color: #444;
  border: 1px solid #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  height: auto;
  line-height: 1.1;
}

.small-button-container button.new_button {
  padding: 3px 8px;
  font-size: 13px;
  height: auto;
  line-height: 1.1;
}

.small-button-container button:hover,
.small-button-container button.new_button:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
}

/* Compact buttons row */
.buttons {
  display: flex !important;
  align-items: center !important;
  gap: 1px !important;
}

.buttons > * {
  padding: 5px 8px;
}

.buttons form button {
  padding: 5px 8px;
}

/* =========================================================
   9) Sidebar + overlay
   ========================================================= */

.site-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #333;
  color: #fff;
  padding: 20px;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  transform: translateX(100%);
  z-index: 10;
}

.site-sidebar a {
  color: #fff;
  text-decoration: none;
}

.site-sidebar.visible {
  transform: translateX(0);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 5;
}

#overlay.visible {
  display: block;
}

/* =========================================================
   10) User avatar / icons
   ========================================================= */

.user-avatar img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  border: 1.5px solid #fff;
}

.user-icon {
  font-size: 24px;
  color: #fff;
}

/* =========================================================
   11) Footer
   ========================================================= */

.site-footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 8px 0;
  width: 100%;
  margin-top: auto;
  font-size: 14px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-text {
  white-space: nowrap;
}

.footer-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-follow-label {
  font-weight: 700;
}

.footer-facebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background-color: #1877f2;
  text-decoration: none;
}

.footer-facebook-f {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: #fff;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .footer-follow {
    justify-content: center;
  }

  .footer-text {
    white-space: normal;
  }
}

/* =========================================================
   12) Autocomplete (jQuery UI) + ARIA noise suppression
   ========================================================= */

.ui-autocomplete {
  background-color: #333;
  color: black;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

div[role="status"][aria-live="assertive"] {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  font-size: 0 !important;
}

.ui-autocomplete li {
  padding: 8px 12px;
  cursor: pointer;
  width: 300px;
}

.ui-autocomplete li:hover {
  transform: translateY(0px);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
  color: lightblue;
}

.ui-autocomplete.ui-menu {
  width: 100%;
}

.ui-autocomplete .no-results {
  color: red;
}

/* =========================================================
   13) Close buttons (sidebar/modals)
   ========================================================= */

#closeSidebar {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px !important;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

.close-btn,
.close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  color: white !important;
  cursor: pointer !important;
}

/* =========================================================
   14) Modal (generic)
   ========================================================= */

.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  max-width: 500px;
  min-height: 1em;
  padding: 20px;
  pointer-events: auto;
  background-color: #333;
  background-clip: padding-box;
  border: 1px solid white;
  border-radius: 0.3rem;
  outline: 0;
  max-height: 95%;
  overflow-y: auto;
}

/* Select2 */
.select2-container .select2-results__option {
  background-color: #f0f0f0;
  color: #333;
}

.select2-container--default
  .select2-selection--multiple
  .select2-selection__choice {
  background-color: #333333;
}

/* =========================================================
   15) Songs list / items
   ========================================================= */

li {
  display: flex;
  align-items: center;
}

a.song-title {
  font-weight: 700;
  white-space: nowrap;
  margin-right: 10px;
}

ul {
  padding-inline-start: 10px;
}

#title {
  padding-left: 5px;
}

#song-info,
#chords-info {
  padding-left: 5px;
  padding-bottom: 20px;
}

#lyrics {
  padding-left: 5px;
}

.song-item {
  display: flex;
  flex-wrap: wrap;
}

.song-item .song-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.song-item .icons-and-title {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

#chords {
  color: lightblue;
  padding-bottom: 10px;
  padding-top: 10px;
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   16) Active filters + navigation buttons
   ========================================================= */

.active-filters-item {
  display: inline-block;
  padding: 5px 8px !important;
  margin: 1px;
  font-size: 0.7em !important;
  font-weight: 200;
  text-align: center;
  color: #fff;
  background-color: #444;
  border: 1px solid #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.active-filters-item:hover {
  background-color: #0056b3;
}

.active-filters-item a {
  font-size: 0.9em !important;
  vertical-align: center;
  text-decoration: none;
  margin-left: 5px;
}

.active-filters,
.navigation-buttons {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 5px;
  max-width: 100%;
}

.active-filters > * {
  white-space: nowrap;
}

/* Consolidated: navigation-buttons was duplicated; keep final look (scale 0.7 + centered) */
.navigation-buttons {
  height: 40px;
  box-sizing: border-box;
  margin: 0;
  transform: scale(0.7);
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.navigation-buttons > * {
  height: 100%;
  flex: 0 1 auto;
  margin: 5px;
  box-sizing: border-box;
}

/* =========================================================
   17) Filter modal (active-filters modal)
   ========================================================= */

.filter-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.filter-modal-content {
  background-color: #000000;
  margin: auto;
  padding: 10px;
  border: 1px solid #888;
  width: 300px;
  max-height: 95%;
  overflow-y: auto;
}

.filter-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.filter-close:hover,
.filter-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.filter-modal-content ul {
  padding: 0px;
  margin: 0px;
  padding-bottom: 5px;
  list-style-position: inside;
}

.filter-modal-content li {
  padding-left: 0;
  margin-left: 0;
}

/* =========================================================
   18) Tonicities
   ========================================================= */

.tonicities {
  display: flex;
  flex-direction: column;
  align-items: left;
}

.natural-tonicities,
.sharp-tonicities {
  display: flex;
  justify-content: left;
}

.tonicity-button {
  font-size: 0.9em !important;
  margin: 2px;
  padding: 5px;
  font-weight: 600;
  width: 40px;
  text-align: center;
}

.sharp-tonicities .tonicity-button:empty {
  visibility: hidden;
}

/* =========================================================
   19) Room modal
   ========================================================= */

#roomModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 300px;
  background: #222;
  color: #bbb;
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

#closeRoomModal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
}

/* =========================================================
   20) Debug overrides
   ========================================================= */

#debug-steps,
#debug-steps * {
  color: black !important;
}

/* =========================================================
   21) Edit song page (kept as-is, already structured)
   ========================================================= */

.song-edit-page {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  background: #050505;
  color: #f5f5f5;
}

.song-edit-wrapper {
  width: 100%;
  max-width: 980px;
  background: radial-gradient(circle at top left, #1b1b1b, #050505 60%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  padding: 2rem 2.25rem 2.5rem;
}

.song-edit-header {
  margin-bottom: 1.75rem;
}

.song-edit-breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
}

.song-edit-breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.song-edit-breadcrumb-link:hover {
  text-decoration: underline;
}

.song-edit-breadcrumb-separator {
  margin: 0 0.2rem;
}

.song-edit-breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
}

.song-edit-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.song-edit-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.song-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.song-edit-section {
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.song-edit-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.song-edit-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.song-edit-field:last-child {
  margin-bottom: 0;
}

.song-edit-field label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.song-edit-field input,
.song-edit-field textarea,
.song-edit-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.95);
  color: #f5f5f5;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease;
}

.song-edit-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

.song-edit-field input::placeholder,
.song-edit-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.song-edit-field input:focus,
.song-edit-field textarea:focus,
.song-edit-field select:focus {
  border-color: #1d8cfb;
  box-shadow: 0 0 0 1px rgba(255, 152, 0, 0.45);
  background-color: rgba(15, 15, 15, 0.98);
}

.song-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.song-edit-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.song-edit-submit,
.song-edit-cancel {
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.song-edit-submit {
  background: linear-gradient(135deg, #1d8cfb);
  color: #111;
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.song-edit-submit:hover {
  filter: brightness(1.05);
}

.song-edit-cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.song-edit-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .song-edit-wrapper {
    padding: 1.6rem 1.3rem 2rem;
  }

  .song-edit-title {
    font-size: 1.4rem;
  }

  .song-edit-grid {
    grid-template-columns: 1fr;
  }

  .song-edit-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}

/* =========================================================
   22) Forms: responsive grid + prevent overflow on small screens
   ========================================================= */

.form .grid {
  display: grid;
  gap: 16px;
}

.form .grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form .field.full {
  grid-column: 1 / -1;
}

.form .field {
  min-width: 0;
}

.form .input,
.form input,
.form select,
.form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .form .grid2 {
    grid-template-columns: 1fr;
  }

  .form .segmented {
    flex-wrap: wrap;
  }

  .form .segmented > * {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/styles/buttons.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-weight: 600;
  border-radius: 8px;

  cursor: pointer;
  user-select: none;
  transition: opacity 120ms ease, transform 120ms ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn--disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn--block { width: 100%; }

/* Sizes */
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--md { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { height: 40px; padding: 0 16px; font-size: 15px; }

/* Variants */
.btn--primary { background: #0070f3; color: #fff; border: none; }
.btn--secondary { background: transparent; color: #fff; border: 1px solid #555; }
.btn--danger { background: #b00020; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.btn--ghost { background: transparent; color: #0070f3; border: none; }
.btn--outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn--link { background: transparent; color: #0070f3; border: none; padding: 0; height: auto; }
.btn--icon { background: transparent; border: none; padding: 0 8px; }

/* ✅ ΜΟΝΟ save πράσινο (χωρίς να πειράζουμε το primary γενικά) */
.btn[data-action="save"] {
  background: #198754;
  color: #fff;
  border: none;
}
/* ✅ ΜΟΝΟ room μοβ */
.btn[data-action="room"] {
  background: #6f42c1; /* μοβ */
  color: #fff;
  border: none;
}

/* Content wrappers */
.btn__icon {
  display: inline-flex;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.btn__label { line-height: 1; }

/* Global icon-only behavior for action buttons (if you want it globally) */
.btn[data-action="save"] .btn__label,
.btn[data-action="delete"] .btn__label,
.btn[data-action="cancel"] .btn__label,
.btn[data-action="back"] .btn__label,
.btn[data-action="new"] .btn__label,
.btn[data-action="apply"] .btn__label,
.btn[data-action="search"] .btn__label,
.btn[data-action="select"] .btn__label {
  display: none;
}

/* ✅ IMPORTANT:
   - ΔΕΝ βάζουμε το sort εδώ, γιατί δεν θέλουμε να κρύβεται το label του.
   - Θέλουμε να φαίνεται "Ταξινόμηση: Α-Ω" */
.btn[data-action="sort"] .btn__label {
  display: inline;
}

/* Default compact styling for action buttons */
.btn[data-action] {
  gap: 0;
  padding-left: 10px;
  padding-right: 10px;
}

/* ✅ Για sort όταν δείχνει label (data-show-label="true"),
   επαναφέρουμε το κανονικό σχήμα/μέγεθος όπως τα md buttons */
.btn[data-action="sort"][data-show-label="true"] {
  gap: 8px;
  padding-left: 14px;  /* ίδιο με .btn--md */
  padding-right: 14px; /* ίδιο με .btn--md */
}

/* Per-instance overrides */
.btn[data-icon-only="true"] .btn__label { display: none; }
.btn[data-icon-only="true"] { gap: 0; padding-left: 10px; padding-right: 10px; }

.btn[data-show-label="true"] {
  gap: 8px;
}
.btn[data-show-label="true"] .btn__label {
  display: inline;
}

/* Optional: a11y helper (if used elsewhere) */
.btn__sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
/* Focus handling (best practice)
   - mouse click: no persistent blue ring
   - keyboard (Tab): visible focus ring
*/
.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.btn--toggle:hover {
  box-shadow: none !important;
  /* και αν χρειάζεται: */
  /* background: inherit !important; */
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.15_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/styles/score-player.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* --- Repertorio Score Player UI (CSS) --- */

/* Wrapper */
.score-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: sans-serif;
  margin: 10px 0;
}

/* Controls row */
.sp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px; /* σχεδόν κολλημένα */
  flex-wrap: wrap; /* να σπάνε σε δεύτερη γραμμή όταν δεν χωράνε */
}

/* Πάνω σειρά: Transport + Προβολή + Εκτύπωση */
.sp-controls-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap; /* κι εδώ να σπάει αν δεν χωράει */
}

/* Buttons (βάση) */
.sp-controls button,
.sp-controls .sp-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: #1e1e1e;
  color: #fff;
  border: 1px solid #333;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.06s, box-shadow .2s;
  margin: 1px;
}
.sp-controls button:hover { background: #2e2e2e; }
.sp-controls button:active { transform: translateY(1px) scale(0.98); }
.sp-controls button:disabled { opacity: 0.45; cursor: not-allowed; }

/* --- Transport: ενεργό κουμπί (Play/Pause/Stop) να ξεχωρίζει, όπως στα View buttons --- */
.sp-controls .sp-btn.sp-play.is-active,
.sp-controls .sp-btn.sp-pause.is-active,
.sp-controls .sp-btn.sp-stop.is-active,
.sp-controls .sp-btn.sp-play[aria-pressed="true"],
.sp-controls .sp-btn.sp-pause[aria-pressed="true"],
.sp-controls .sp-btn.sp-stop[aria-pressed="true"] {
  background: #444 !important;
  border-color: #5c5c5c !important;
  color: #fff !important;
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(0,188,212,.45) inset,
    0 1px 0 rgba(255,255,255,.05);
}

/* Transpose value */
.sp-transpose-val {
  width: 26px;
  text-align: center;
  font-weight: bold;
  color: #ffffff;
  margin-left: 2px;
}

/* Tempo input + label */
.sp-tempo-wrap {
  display: inline-flex;
  align-items: center;
   margin-left: 10px;
  gap: 4px;
}

.sp-tempo {
  width: 60px;
  height: 28px;
  padding: 2px 4px;
  font-size: 13px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}

.sp-tempo-val {
  font-size: 13px;
  color: #ffffff;
  margin-left: 4px;
}
/* Κουτί για να φιλοξενεί input + ένδειξη bpm μέσα στο textbox */
.sp-tempo-box {
  position: relative;
  display: inline-block;
}

/* Περισσότερο padding δεξιά για να χωράει η λέξη "bpm" */
.sp-tempo {
  padding-right: 28px;
}

/* Η ένδειξη "bpm" μέσα στο κουτί */
.sp-tempo-unit {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #ffffff;      /* άσπρο */
  opacity: 0.85;       /* λίγο πιο ήπιο */
  pointer-events: none;
}


/* Όταν το textbox έχει focus, κρύψε το "bpm" για να μη μπερδεύει το βλέμμα */
.sp-tempo:focus + .sp-tempo-unit {
  opacity: 0;
}

/* Zoom input + label */
.sp-zoom-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  gap: 4px;
}

/* Κουτί για input + ένδειξη % μέσα στο textbox */
.sp-zoom-box {
  position: relative;
  display: inline-block;
}

.sp-zoom {
  width: 60px;
  height: 28px;
  padding: 2px 4px;
  padding-right: 22px;       /* χώρο για το % */
  font-size: 13px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
}

/* Η ένδειξη % μέσα στο κουτί */
.sp-zoom-suffix {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #ffffff;
  opacity: 0.85;
  pointer-events: none;
}

/* Όταν το textbox έχει focus, κρύψε το % όπως και στο tempo */
.sp-zoom:focus + .sp-zoom-suffix {
  opacity: 0;
}

/* Score renderer box (default) */
.sp-renderer {
  min-width: 0;                 /* ✅ για να μη “σκάει” το layout */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  width: 90%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 85vh;
  background: #ffffff!important;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 8px;
}

/* Σελίδες – λίγο κενό μεταξύ */
.sp-page { margin-bottom: 16px; }

/* Icon font για απλά σύμβολα */
.sp-icon {
  font-family: "Lucida Console", monospace;
  font-weight: bold;
  pointer-events: none;
}

/* -------- Note highlight -------- */
.note-highlight,
.note-highlight * {
  fill: #f32121 !important;
  stroke: #2196f3 !important;
  transition: fill 0.2s, stroke 0.2s;
}

/* ΜΗΝ κλειδώνεις stroke-width στο CSS — ρυθμίζεται με JS */
.stem, [class*="stem"]{
  stroke: #000000 !important;
  vector-effect: non-scaling-stroke;
}
rect.stem, g.stem rect {
  fill: #000000 !important;
  paint-order: stroke fill;
}

/* Κάνει κάθε SVG σελίδας πιο στενή ώστε να κεντράρει όμορφα */
.score-player .sp-page svg {
  display: block;
  width: 96% !important;
  height: auto !important;
  margin: 0 auto;
  touch-action: auto; /* επιστρέφουμε σε default συμπεριφορά */
}

/* Επιστροφή σε default touch handling για scroll/zoom του browser */
.score-player .sp-renderer,
.score-player .sp-renderer * {
  touch-action: auto;
  -ms-touch-action: auto;
}

/* --- View modes --- */
/* Οριζόντια */
.score-player.sp-mode-horizontal .sp-renderer {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 62vh;
}
.score-player.sp-mode-horizontal .sp-page {
  display: inline-block;
  margin: 0 16px 0 0;
  vertical-align: top;
}
.score-player.sp-mode-horizontal .sp-page svg {
  width: auto !important;
  height: 58vh !important; /* ~4vh λιγότερο από το container */
}

/* Σελίδες */
.score-player.sp-mode-paged .sp-renderer {
  white-space: normal;
  overflow-x: hidden;
  overflow-y: auto;
}
.score-player.sp-mode-paged .sp-page {
  display: block;
  margin: 0 0 16px 0;
}
.score-player.sp-mode-paged .sp-page svg {
  display: block;
  width: 96% !important;
  height: auto !important;
  margin: 0 auto;
}

/* --- View Toggle UI (2η σειρά) --- */
.sp-controls .sp-btn { /* βάση: auto width για όλα */
  width: auto;
  padding: 0 10px;
}
/* Κράτα τα 36px ΜΟΝΟ για icon buttons */
.sp-controls .sp-play,
.sp-controls .sp-pause,
.sp-controls .sp-stop,
.sp-controls .sp-transpose-up,
.sp-controls .sp-transpose-down,
.sp-controls .sp-zoom-in,
.sp-controls .sp-zoom-out {
  width: 36px;
  padding: 0;
}

.sp-controls-row2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Γραμμή με Play / Pause / Stop δίπλα στο Οριζόντια / Σελίδες */
.sp-transport-top {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-right: 8px;  /* λίγο κενό πριν από Οριζόντια / Σελίδες */
}

.sp-view-label { font-size: 14px; margin-right: 2px; white-space: nowrap; }
.sp-view-toggle { display: inline-flex; gap: 4px; }

/* Ενεργό view κουμπί */
.sp-controls .sp-view-toggle .sp-btn[aria-pressed="true"],
.sp-controls .sp-view-toggle .sp-btn.is-active {
  background: #444 !important;
  border-color: #5c5c5c !important;
  color: #fff !important;
  opacity: 1;
  box-shadow:
    0 0 0 2px rgba(0,188,212,.45) inset,
    0 1px 0 rgba(255,255,255,.05);
}
/* Segmented look */
.sp-view-toggle .sp-btn:first-child {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.sp-view-toggle .sp-btn:last-child {
  border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px;
}

/* Σε “Σελίδες”: δείξε τα native Verovio/OSMD measure numbers */
.score-player.sp-mode-paged .mNum,
.score-player.sp-mode-paged text.mNum,
.score-player.sp-mode-paged g.mNum {
  display: inline !important;
  visibility: visible !important;
}
/* και κρύψε μόνο τα overlay δικά μας */
.score-player.sp-mode-paged .sp-mnum,
.score-player.sp-mode-paged .sp-measure-num,
.score-player.sp-mode-paged [data-sp-mnum] {
  display: none !important;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .score-player .sp-page svg { width: 94% !important; }
}
@media (max-width: 600px) {
  .sp-controls .sp-btn { height: 34px; font-size: 13px; }
}

/* Optional dark mode */
@media (prefers-color-scheme: dark) {
  .sp-renderer {
    background: #111;
    border-color: #2a2a2a;
  }
}

/* Λίγο πιο αχνό για να ξεχωρίζει από τον τίτλο, αλλά να “δένει” */
.sp-tonality-in-title {
  fill: #111;
  opacity: 0.9;
}

/* === Tonality badge (έξω από το SVG) === */
.sp-key-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border:1px solid #333;
  border-radius:6px;
  background:#1e1e1e;
  color:#fff;
  font-size:14px;
  line-height:1;
  min-height:28px;
  white-space:nowrap;
}
.sp-key-badge::before{
  font-size:14px;
  opacity:.9;
}

/* OSMD cursor – πιο λεπτός & κυανός (fallback, το βασικό γίνεται από JS) */
.score-player svg [id*="cursor"],
.score-player svg [class*="cursor"] {
  fill: rgba(0,188,212,0.35) !important;
}
/* Αφαίρεση spin buttons (Chrome, Edge, Safari, Opera) */
.sp-tempo::-webkit-outer-spin-button,
.sp-tempo::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Αφαίρεση spin buttons (Firefox) */
.sp-tempo[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.sp-btn.sp-print {
    width: 36px;
    font-size: 20px;
}
@media (max-width: 600px) {

  /* Το wrapper να απλώνεται σε όλο το πλάτος */
  .score-player {
    align-items: stretch;
  }

  /* Και οι δύο σειρές controls πιο «μαζεμένες» */
  .sp-controls,
  .sp-controls-view {
    justify-content: center;
    gap: 4px;
  }

  /* Μέσα στην πάνω σειρά, αν χρειαστεί, σπάνε κι αυτά */
  .sp-transport-top,
  .sp-view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Ελαφρώς μικρότερα κουμπιά για κινητά */
  .sp-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Λίγο πιο στενά input για να χωράνε */
  .sp-tempo,
  .sp-zoom {
    width: 52px;
  }
}
/* Δικός μας δείκτης πάνω στην παρτιτούρα */
svg .sp-playhead {
  stroke: #00bcd4;
  stroke-width: 2px;
  opacity: 0.9;
}
/* ===========================
   PRINT FIX – Replace title
   =========================== */
@media print {
  @page {
    /* Chrome/Edge print title override */
    margin: 15mm;
    size: auto;
  }

  /* Κρύβουμε τον τίτλο του browser */
  body::before {
    content: "Repertorio.net";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14pt;
    font-weight: bold;
    padding-top: 5mm;
  }
}

