@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Black.otf') }}");
  font-weight: 900;
}

@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Bold.otf') }}");
  font-weight: 700;
}

@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-ExtraBold.otf') }}");
  font-weight: 800;
}

@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-ExtraLight-BETA.otf') }}");
  font-weight: 200;
}

@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Light-BETA.otf') }}");
  font-weight: 300;
}
@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Medium.otf') }}");
  font-weight: 500;
}

@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Regular.otf') }}");
  font-weight: 400;
}
@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-SemiBold.otf') }}");
  font-weight: 600;
}
@font-face {
  font-family: "Inter";
  src: url("{{ url_for('static', filename='fonts/Inter-Thin-BETA.otf') }}");
  font-weight: 100;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  background-color: #f1f2f2;
}

header {
  display: flex;
  justify-content: center;
  /* horizontal center */
  align-items: center;
  /* vertical center */
  background-color: #000000;
  color: white;
  padding: 10px;
  font-size: 32px;
  font-family: "Samarkan", serif;
  height: 60px;
}

.card-button {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 6px;
  padding: 5px 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: none;
  width: 100%;
  cursor: pointer;
  transition: transform 0.2s ease;
  /* height: 60px; */
}

.card-button:hover {
  transform: scale(1.02);
}

.card-button .icon-box {
  border-radius: 8px;
  padding: 8px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-button .icon-box img {
  width: 30px;
  height: 30px;
}

.card-button .label {
  color: #555;
  font-family: "Audiowide", sans-serif;
  font-size: 14px;
  font-weight: 500;
}

.select {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 6px 16px;
  padding-right: 20px;
  font-family: "Audiowide", sans-serif;
  font-size: 14px;
  color: #000000;
  background-color: #fff;
  appearance: none;
  background-image: url("{{ url_for('static', filename='icons/dropdownsymbol.png') }}");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.input {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 6px 16px;
  font-family: "Audiowide", sans-serif;
  font-size: 14px;
  color: #000000;
  background-color: #fff;
  appearance: none;
}

.date {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 6px 16px;
  font-family: "Audiowide", sans-serif;
  font-size: 14px;
  color: #000000;
  background-color: #fff;
  appearance: auto;
  /* <- allow browser styling for date picker */
}

.input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(77, 62, 163, 0.2);
}

.select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(77, 62, 163, 0.2);
}

.measures-box {
  text-align: center;
}

.song-row-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow-x: auto;
}

.note-cell {
  width: calc(100% - 4px);
  height: 37px;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
  /* line-height: 35px; */
  border-radius: 6px;
  margin: 2px;
  color: white;
  background-color: #333;
  font-family: "Audiowide", sans-serif;
  padding-left: 10px;
  border: none;
  outline: none;
  transition: background-color 0.2s ease, transform 0.1s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  padding-top: 3px;
  padding-bottom: 2px;
}

.note-blue {
  background-color: #ffffff;
}

/* Top row */
.note-orange {
  background-color: #ffffff;
}

/* 2nd row */
.note-yellow {
  background-color: #ffffff;
}

/* 3rd row */
.note-purple {
  background-color: #ffffff;
}

/* 4th row */

.icon-cell {
  width: 45px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 40px;
  margin-top: 1px;
  margin-bottom: 7px;
}

.icon-song {
  background-color: #000000;
}

.icon-sargam {
  background-color: rgb(0, 0, 0);
}

.icon-keys {
  background-color: #000000;
}

.icon-midi {
  background-color: #000000;
}

.btn-play,
.btn-download {
  background-color: #000000;
  border: none;
  color: white;
  font-family: "Audiowide", sans-serif;
  padding: 6px 14px;
  border-radius: 8px;
}

.btn-play:hover,
.btn-download:hover {
  background-color: #6a5dc2;
}

.measures-header {
  font-family: "Audiowide", sans-serif;
  font-size: 18px;
  color: #000000;
}

.scroll-table {
  overflow-x: auto;
  white-space: nowrap;
}

.note-bar {
  width: 90%;
  height: 3px;
  background-color: #e0dede;
  margin-top: 2px;
  margin-bottom: 4px;
  border-radius: 1px;
}

.note-row {
  display: flex;
  flex-direction: row;
}

.card-button.selected {
  border: 2px solid #000000 !important;
  background-color: #ffffff !important;
  /* keep background white */
}

.row-song .note-cell {
  color: #000000 !important;
  background-color: #ffffff;
  border: 1px solid #f2f2f2;
  border-radius: 2px;
}

.row-sargam .note-cell {
  color: #000000 !important;
  background-color: #ffffff;
  border: 1px solid #f2f2f2;
  border-radius: 2px;
}
.btn {
  border-radius: 3px;
}
.piano {
  position: relative;
  width: 100%;
  height: 160px;
  margin: 0px auto 20px auto;
  user-select: none;
  display: flex;
}
.progress-bar.bg-info {
  background-color: #000 !important;
}
/* White Keys */
.piano-key-wrap {
  position: relative;
  width: calc(100% / 16);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.white-key {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.white-key-label {
  margin-bottom: 5px;
  font-size: 13px;
  color: #333;
  pointer-events: none;
}

/* Black Keys */
.black-key {
  position: absolute;
  width: 18px;
  height: 100px; /* Slightly reduced from 120px */
  background: #000;
  border-radius: 0 0 4px 4px;
  z-index: 2;
  top: 0;
  right: -7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Pressed Effect */
.white-key.active-play,
.black-key.active-play {
  transform: translateY(1.5px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.05s ease, box-shadow 0.1s ease;
}

/* Prevent text selection when clicking keys */
.piano * {
  user-select: none;
}

/* 🎵 General swara label styling */
.swara-label {
  position: absolute;
  height: 25px;
  width: 25px;

  padding: 3px 6px;
  background: linear-gradient(to bottom, #ffcc80, #ffb74d, #ffa726) !important;
  color: white;
  border-radius: 12px;
  border: 1px solid #000000; /* pill-like shape */
  font-size: 12px;
  text-align: center;
  font-family: "Audiowide", sans-serif;
  pointer-events: none;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* 🎹 Adjust label for white keys */
.white-key .swara-label {
  top: 146px;
  color: #000000;
}

/* ⚫ Adjust label for black keys */
.black-key .swara-label {
  top: 75px;
  color: white;
}

.marathi-text {
  font-family: "Devanagari" !important;
  font-size: 18px;
  color: #000000 !important;
  background-color: #ffffff;
  /* border: 1px solid #999;
  border-radius: 2px; */
}

.form-check-input:checked {
  background-color: black !important;
  border-color: black !important;
}

.swara {
  display: inline-block;
  position: relative;
  padding: 0 2px; /* Reduce padding */
  font-weight: bold;
  line-height: 1; /* Tighter line height */
}

.overline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid black;
}

.underline-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-bottom: 1px solid black;
}

/* Position based on order */
.overline-line:nth-of-type(2) {
  top: -4px;
}
.overline-line:nth-of-type(1) {
  top: -1px;
}

.underline-line:nth-of-type(1) {
  bottom: -4px;
}
.underline-line:nth-of-type(2) {
  bottom: -7px;
}

@keyframes pulseHighlight {
  0% {
    background-color: #ffe484;
  }
  50% {
    background-color: #ffcb05;
  }
  100% {
    background-color: #ffe484;
  }
}

.note-cell.highlight {
  animation: pulseHighlight 0.5s ease-in-out;
}

#playback-controls .btn {
  margin-right: 4px;
}
#playback-controls .btn:last-child {
  margin-right: 0px;
}
.piano-controls {
  background: #111; /* dark base */
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  padding: 20px;
  color: #fff;
}

.control-buttons .control-btn {
  background: #222;
  color: #ffe066; /* golden yellow */
  border: none;
  padding: 10px 16px;
  font-size: 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.control-buttons .control-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.control-btn.play {
  background-color: #28a745;
  color: #fff;
}
.control-btn.pause {
  background-color: #ffc107;
  color: #000;
}
.control-btn.stop {
  background-color: #dc3545;
  color: #fff;
}

.progress-container {
  width: 100%;
  height: 10px;
  background: #333;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.progress-bar-bg {
  height: 100%;
  width: 100%;
  background: #222;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ffe066, #ffc107);
  transition: width 0.1s linear;
}
.btn:hover {
  background-color: inherit !important;
  color: inherit !important;
  border-color: inherit !important;
}
.progress {
  background-color: #a1a2a2 !important;
}
.form-control {
  border: 0px;
  background: transparent;
  border-bottom: 1px solid #c1c1c1;
  border-radius: 0px;
}

.btn:focus-visible {
  border: 1px solid #000;
  outline: 0;
  box-shadow: none;
}
.btn:focus-visible svg {
  fill: #fff;
}
.note-row.row-song > div.d-flex,
.note-row.row-sargam > div.d-flex,
.note-row.row-keys > div.d-flex,
.note-row.row-midi > div.d-flex {
  width: calc(100% / 16);
}
.tune-box {
  width: calc(100% - 169px);
}
.form-control:focus {
  background-color: transparent;
  border: 0px !important;
  border-bottom: 1px solid #c1c1c1 !important;
  box-shadow: none;
}
.login-box {
  max-width: 400px;
  border: 1px solid #000;
  border-radius: 10px;
}

.login-box header {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.login-box section {
  padding: 25px;
}
.login-page {
  padding: 0px;
  width: 100%;
  height: 100vh;
  justify-content: center;
  display: flex;
  align-items: center;
}
.submit-btn button.btn {
  width: auto;
  margin: 15px auto 0;
}
.measures-box .measure-section:first-child {
  margin-top: 0px !important;
}
