/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #ffffff;
  color: #111111;
  line-height: 1.5;
}

/* Container principal */
.main-container {
  min-height: 100vh;
  position: relative;
}

.container2 {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .content-wrapper {
    flex-direction: row;
  }
}

/* Sidebar */
.sidebar {
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .sidebar {
    width: 180px;
    margin-right: 1.5rem;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    margin-bottom: 0;
  }
}

.profile-section {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-image {
  position: relative;
  height: 80px;
  width: 80px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-info {
  margin-bottom: 0.25rem;
}

.song-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111111;
}

.artist-name {
  font-size: 1.25rem;
  font-weight: 500;
  color: #f97316;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.video-lesson-btn {
  margin-bottom: 1rem;
}

.print-download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-tools {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

/* Botões */
.btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  width: 100%;
  text-align: left;
}

.btn-primary {
  background-color: #e6f0ff;
  color: #1e40af;
  border: 1px solid #c7d2fe;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #d1d5db;
  color: #4b5563;
}

.btn-outline:hover {
  background-color: #f9fafb;
}

.btn-orange {
  background-color: #f97316;
  color: white;
  text-align: center;
  font-weight: 500;
  justify-content: center;
  padding: 0.5rem 1rem;
}

.btn-mode {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  background-color: transparent;
  color: #4b5563;
  cursor: pointer;
}

.btn-mode.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.check-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  background-color: #1e40af;
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-right: 0.25rem;
}

/* Controles */
.control-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6b7280;
}

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

.text-large {
  font-size: 1rem;
}

.tone-value {
  color: #f97316;
  font-weight: 700;
}

.scroll-speed-control,
.text-size-control,
.tone-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  color: #4b5563;
}

.hidden {
  display: none;
}

/* Menu de exibição */
.display-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 0.25rem;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
}

.menu-options {
  padding: 0.5rem;
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-option:hover {
  background-color: #f3f4f6;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox[data-checked="true"]::after {
  content: "✓";
  color: #3b82f6;
  font-size: 0.75rem;
}

/* Conteúdo principal */
.main-content {
  flex-grow: 1;
}

.ad-banner {
  position: relative;
  margin-bottom: 1.5rem;
  background-color: #f3f4f6;
  border-radius: 0.375rem;
  overflow: hidden;
}

.ad-banner img {
  width: 100%;
  height: 134px;
  object-fit: cover;
}

.ad-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-overlay span {
  font-size: 0.75rem;
  color: #6b7280;
}

.view-mode-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.main-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .main-content-wrapper {
    flex-direction: row;
  }

  .chord-sheet-container,
  .video-container {
    width: 100%;
  }

  .two-columns .chord-sheet-container,
  .two-columns .video-container {
    width: 50%;
  }
}

/* Cifra */
.chord-sheet-container {
  font-family: monospace;
  padding-bottom: 5rem;
}

/* Vídeo */
.video-container {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .video-container {
    margin-top: 0;
  }
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #111111;
  border-radius: 0.5rem;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.play-button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.play-button .icon-medium {
  margin-left: 0.25rem;
}

.video-artist {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.video-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}

/* Elementos fixos */
.view-counter {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.leon-ad {
  position: fixed;
  bottom: 0;
  right: 0;
  max-width: 160px;
}

.ad-container {
  position: relative;
}

.ad-container img {
  border-radius: 0.5rem;
}

.close-ad {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background-color: white;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.75rem;
  color: #6b7280;
  cursor: pointer;
}

.footer-icons {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  color: #9ca3af;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

.info-btn {
  color: #3b82f6;
}

.auto-scroll-indicator {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stop-scroll-btn {
  background-color: white;
  color: #3b82f6;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Ícones */
.icon-small {
  width: 14px;
  height: 14px;
}

.icon-medium {
  width: 24px;
  height: 24px;
}

.icon-tiny {
  width: 12px;
  height: 12px;
}

/* Diagramas de acordes */
.chord-diagram {
  display: inline-block;
  text-align: center;
  margin: 0 0.25rem;
  vertical-align: middle;
  position: relative;
}

.chord-name {
  font-size: 0.75rem;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.diagram-container {
  position: relative;
  width: 48px;
  height: 56px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 0.25rem;
}

.diagram-container:hover {
  background-color: #f9fafb;
}

.play-chord-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e7eb;
  color: #4b5563;
  border: none;
  cursor: pointer;
}

.play-chord-btn.playing {
  background-color: #f97316;
  color: white;
}

/* Estilos para impressão */
@media print {
  body * {
    visibility: hidden;
  }
  .container,
  .container * {
    visibility: visible;
  }
  .chord-sheet-container,
  .chord-sheet-container * {
    visibility: visible;
  }
  .container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  .sidebar,
  .ad-banner,
  .video-container,
  .view-counter,
  .leon-ad,
  .footer-icons,
  .auto-scroll-indicator {
    display: none !important;
  }

  .chord-sheet-container {
    width: 100% !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .print-hide {
    display: none !important;
  }

  @page {
    size: portrait;
    margin: 2cm;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* Estilos específicos para diagramas de instrumentos */
/* Violão/Guitarra */
.guitar-diagram {
  position: relative;
  width: 48px;
  height: 56px;
}

.guitar-string {
  position: absolute;
  background-color: #4b5563;
  width: 1px;
  height: 100%;
}

.guitar-fret {
  position: absolute;
  left: 0;
  right: 0;
  background-color: #4b5563;
}

.guitar-dot {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 8px;
  background-color: #4b5563;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  transition: background-color 0.2s;
}

.guitar-dot.playing {
  background-color: #f97316;
}

.guitar-open {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #4b5563;
  background-color: white;
}

.guitar-barre {
  position: absolute;
  border-radius: 4px;
  background-color: #4b5563;
  height: 8px;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}

.guitar-barre.playing {
  background-color: #f97316;
}

.string-indicators {
  font-size: 8px;
  color: #6b7280;
  margin-top: 4px;
}

/* Ukulele */
.ukulele-diagram {
  position: relative;
  width: 48px;
  height: 56px;
}

/* Teclado */
.keyboard-diagram {
  position: relative;
  width: 48px;
  height: 56px;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  background-color: white;
  overflow: hidden;
}

.white-key {
  position: absolute;
  bottom: 0;
  border: 1px solid #d1d5db;
  height: 48px;
  background-color: white;
}

.white-key.active {
  background-color: #fed7aa;
}

.black-key {
  position: absolute;
  top: 0;
  width: 6px;
  height: 28px;
  background-color: #1f2937;
}

.black-key.active {
  background-color: #f97316;
}

.key-dot {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f97316;
}

.key-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: #6b7280;
}

/* Tablatura */
.tablature {
  margin: 1rem 0;
  position: relative;
}

.tablature-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.tablature-content {
  font-family: monospace;
  font-size: 0.875rem;
  background-color: #f9fafb;
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  position: relative;
  white-space: pre;
}

.tablature-line {
  white-space: pre;
}

.tablature-play-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e7eb;
  color: #4b5563;
  border: none;
  cursor: pointer;
}

.tablature-play-btn.playing {
  background-color: #f97316;
  color: white;
}
.chord-sheet {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.chord-line {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.chord {
  display: inline-block;
  width: 60px;
  font-weight: 700;
  color: #2c3e50;
}

.lyric {
  display: inline-block;
  color: #34495e;
}

.hidden {
  display: none;
}

.display-menu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-option {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
  border-radius: 4px;
}

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

.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 14px;
  color: #2c3e50;
}

.checkbox[data-checked='true'] {
  background: #3498db;
  border-color: #3498db;
  color: #fff;
}