:root {
  --mainLight: #d7ebff;
  --mainDark: #2b4992;
  --highlight: #0e6fe4;  
  --background: #f1efe2;
  
  --paperTan: #f4f1ea;
  
  --maxWidth: 1000px;
  --highlight: #0e6fe4;
  --lightGray: #f9f9f9;
  --darkGray: #a6a6a6;
  --footerColor: #f8f8f8;
}

@font-face {
  font-family: 'CrimsonText';
  src: url('/static/resources/CrimsonText-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--footerColor);
}

select {
  border-radius: 4px;
  background-color: #fafbfc;
}

.background {
  min-height: 100vh;
  background: var(--background);
  padding: 8px 10px;  
  box-sizing: border-box;
}

.short-message {
  max-width: var(--maxWidth);
  margin-left: auto;
  margin-right: auto;
}

#topBanner {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

a {
  text-decoration: none;
  color: var(--mainDark);
}

.big {
  font-size: 2rem;
}

.branding {
  font-family: 'CrimsonText', Arial
}

.big-font {
  font-size: 1.5rem;
}

.title {
  text-align: center;
}

.main-horizontal, .main-vertical {
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 70vh;
}

.main-horizontal {
  flex-flow: row wrap;
}

.main-vertical {
  flex-flow: column wrap;
}

.main-form {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  width: 300px;
  gap: 5px;
  padding: 20px;
  border: 1px solid var(--darkGray);
  border-radius: 7px;
  background-color: var(--lightGray);
}

.main-form input {
  font-size: 15px;
  width: 100%;
  padding: 3px;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 5px;
}

.main-form input[type="submit"] {
  width: 200px;
  border: none;
}

.main-form p {
  margin: 3px;  
}

#errorMessage {
  color: red;
}

#uploadGroup {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 70vh;
  padding: 20px;
}

.column {
  width: 450px;
  margin-right: 10px;
}

.drop-zone {
  background: white;
  border: 3px dashed #ccc;
  border-radius: 10px;
  padding: 50px;
  text-align: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

#accountLinks {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
  gap: 10px;
}

.action-button, .simple-button {
  display: inline-block;
  font-size: 15px;  
  padding: 6px 12px;  
  cursor: pointer;
  border-radius: 6px;
  border: none;
}

.action-button {
  color: white;
  font-weight: bold;
  background-color: var(--mainDark);
}

.action-button:hover {
  background-color: #375ebf;
  transition-duration: 0.1s;  
}

.simple-button {
  color: rgb(36, 41, 46);
  background-color: rgb(250, 251, 252);
  border-width: 1px;
  border-style: solid;  
  border-color: rgb(114, 114, 114);
  background-color: #fafbfc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.simple-button:hover {
  background-color: #f3f4f6;
  transition-duration: 0.1s;
}

.account-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.account-icon:hover {
  transform: scale(1.05);
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  color: #333;
}

.menu-item:first-child {
  border-radius: 8px 8px 0 0;
}

.menu-item:last-child {
  border-radius: 0 0 8px 8px;
}

.menu-item:hover {
  background: #f5f5f5;
}

.menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

.pricing-card {
  display: flex;
  flex-flow: column nowrap;
  background: #ffffff;
  width: 350px;
  min-height: 320px;
  margin: 0 15px;
  padding: 15px;
  outline: 2px solid #c3c3c3;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}

.pricing-card ul {
  line-height: 1.5rem;
  list-style-type: none;
  padding-left: 5px;
}

.pricing-card li::before {
  font-size: 1.2rem;
  content: "✓";
  color: var(--highlight);
  font-weight: bold;
  margin-right: 8px;
}

.price {
  font-size: 2.5rem;
  font-weight: bold;
}

.price-period {
  font-size: 1rem;
}

.plan-name {
  margin-bottom: 20px;
  font-size: 24px;
}

.price-button-container {
  display: flex;
  justify-content: center;
}

.selected-card {
  outline-color: var(--highlight);
  outline-width: 4px;
  cursor: default;
}

.half-width {
  width: 49%;
}

.full-width {
  width: 100%;
}

#billingForm {
  width: 300px;
}

.interactive-form {
  display: flex;
  flex-flow: column wrap;
  gap: 4px;
  align-items: center;
  background: var(--lightGray);
  border: 1px solid var(--darkGray);
  padding: 20px;
  border-radius: 5px;
}

.interactive-form select {
  border-radius: 4px;
  background: white;
  padding: 2px 10px;
  font-size: 15px;
  margin-left: 4px;
}

.interactive-form details summary {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

#countrySelect {
  box-sizing: border-box;
  border-radius: 5px;
  margin-bottom: 7px;
  background: white;
  padding: 8px;
  width: 100%;
  border: none;
  outline: 1px solid #000000;
}

.input-container {
  position: relative;
  display: inline-block;
}

.input-field {
  box-sizing: border-box;
  padding: 16px 8px 1px 12px;
  border: none;
  outline: 1px solid #000000;
  border-radius: 7px;
  margin-bottom: 7px;
  width: 100%;
  font-size: 15px;
}

.input-field:focus {
  outline-width: 2px;
  outline-color: var(--highlight);  
}

.input-container:not(.half-width) {
  width: 100%;
}

.input-label {
  position: absolute;
  left: 12px;
  top: 16px;
  font-size: 0.85rem;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  transition: all 0.2s ease;
  line-height: 1;
}

.input-field:focus + .input-label,
.input-field:not(:placeholder-shown) + .input-label {
  top: 3px;
  transform: translateY(0);  
  color: #4a90e2;
  font-size: 0.7rem;
}

.input-field:not(:focus):not(:placeholder-shown) + .input-label {
  color: #666;
}

.profile-header {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.profile-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  width: 450px;
  max-width: 600px;
  margin-bottom: 20px;
  border: 1px solid #eaeaea;
}

.profile-header-container {
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-row {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  gap: 10px;
  min-height: 32px;
}

.profile-label {
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  width: 140px;
  flex-shrink: 0; 
}

.profile-value {
  flex-grow: 1;
  color: #111;
  font-size: 1rem;
}

.profile-action {
  font-size: 0.9rem;
  color: var(--highlight);
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
}

.profile-item {   
}

.cancel, .cancel:hover {
  background-color: #ffc5ca;
}

#sheetMusicWrapper {
  max-width: 1040px;
  width: 100%;
  height: 85vh;
  margin-left: auto;
  margin-right: auto;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ccc;
  background: #f9f9f7;
}

.lightTable {  
  border-collapse: collapse;
}
.lightTable th,td {
  padding:12px 14px;
  text-align:left;
  font-size: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.lightTable th {
  color:#1f2937;
  font-weight:600;
  position:relative;
}
.lightTable thead tr {
  border-bottom:1px solid rgba(255,255,255,0.04);
}
.lightTable tbody tr {
  width: 100%;
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
  transition:box-shadow 0.2s ease,transform 0.2s ease;
}
.lightTable tbody tr:not(:first-child):hover{
  transform:translateY(-1px);
  box-shadow:0 2px 6px rgba(0,0,0,0.15);
}
.lightTable td.idx{
  width:56px;font-weight:700;color:#1f2937
}
.lightTable td.date{
  width:160px;color:#1f2937
}
.lightTable td.name{
  color:#1f2937
}
.lightTable th:nth-child(3),
.lightTable td:nth-child(3) {
  padding-right: 40px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#controlBox {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 5px;
  margin: 15px 0;
  align-items: center;
}

#controlBox select {
  height: 2rem;
  text-align: center;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 3px;
  column-gap: 10px;
}

#status {
  text-align: center;
  margin: 2px 0;
  font-size: 18px;
}

#urlInput {
  margin-top: 5px;
  width: auto;
  flex-grow: 2;  
}

.row-flex {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 4px;
}

.disabled-link {
  color: #999; 
  pointer-events: none;
  text-decoration: none;   
  cursor: default; 
}

.current-plan-badge {
  height: 25px;
  position: relative;  
  display: inline-flex;
  align-items: center;
  padding: 3px 20px;
  background: #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  user-select: none;
  clip-path: polygon(
0% 0%,
100% 0%,
100% 0%, 96% 10%, 100% 20%, 96% 30%, 100% 40%, 96% 50%, 100% 60%, 96% 70%, 100% 80%, 96% 90%, 100% 100%,
0% 100%,
0% 100%, 4% 90%, 0% 80%, 4% 70%, 0% 60%, 4% 50%, 0% 40%, 4% 30%, 0% 20%, 4% 10%
);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}

.input-wrapper {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  align-items; center;
  gap: 4px;
  border: 1px solid rgb(118, 118, 118);
  border-radius: 5px;
  padding: 3px;
  background: rgb(255, 255, 255);
}

.input-wrapper input {
  display: inline-block;
  border: none;  
}

.input-wrapper input:focus-visible {
  outline: none;  
}

.audio-control {
  cursor: pointer;
}

.small-text {
  font-size: 0.9rem;
}

#supportedFormats {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}

.flex-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.text-button {
  font-size: 30px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

#topGroup {
  margin-top: 10px;
  background: white;
  line-spacing: 1.2rem;
}

.short-banner {
  margin: 10px;
  padding: 15px;
  text-align: center;
  background: var(--mainLight);
  border-radius: 4px;
}

#progressBar {
  display: none;
  width: 200px;
  height: 20px;
  margin-left: auto;
  margin-right: auto;
}

.hidden { 
  display: none !important; 
}

#mainTitle {
  font-size: 40px;
}

#resultActions {
  background: #f9faf7;
  border-radius: 10px;
  padding: 15px 0;
  width: 100%;
  border: 1px solid black;
}

.icon-button img {
  height: 18px;
  margin-right: 5px;
}

#gradientSpacer {
  height: 20px;
  width: 100%;
  background: linear-gradient(to bottom, white, var(--footerColor));
}

.footer {
  box-sizing: border-box;
  width: 100%;
  padding: 0 10px;
  background: var(--footerColor);  
}

.footer-links {
  display: flex;
  flex-flow: row wrap;
  gap: 4px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-link, .footer-link:visited {
  color: #505050;
}

.footer-list {
  list-style-type: none;
}

.footer-group-title {
  font-weight: bold;
}

.rounded-gray {
  background: var(--lightGray);
  border-radius: 10px;
  border: 1px solid #acacac;
}

.small-font {
  font-size: 13px;
}

.medium-font {
  font-size: 1.25rem;
}

.dark-gray {
  color: #5c5c5c;
}

.bill-label {
  text-transform: uppercase;
  color: #8c8c8c;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

#playPauseButton .icon-pause {
  display: none;
}

#playPauseButton.playing .icon-play {
  display: none;
}

#playPauseButton.playing .icon-pause {
  display: inline;
}

.faq-container {
  max-width: 800px;
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.faq-item {
  width: 100%;
  max-width: var(--maxWidth);
  box-sizing: border-box;
  background: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
}

.faq-question {
  font-weight: 600;
  color: #264590;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.faq-answer {
  color: #444;
  line-height: 1.5;
  margin: 0;
}

.centered {
  margin-left: auto;
  margin-right: auto;
}

#advancedOptions summary {
  font-size: 15px;
  font-weight: bold;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid rgb(114, 114, 114);
  color: black;
  background-color: #eeeeee;
}

#advancedOptions summary:hover {
  background-color: #f4f4f4;
  transition-duration: 0.1s;  
}

#advancedOptions[open] {
  border: 1px solid rgb(114, 114, 114);
  border-radius: 6px;
  padding: 10px;  
}

#advancedOptions[open] summary {
  margin-bottom: 10px;
  border: none;
  background-color: #00000000;
}
