* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Estilo básico para a Home ===== */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.list-container {
  max-width: 100%;
  background: #e9ecef;
  height: 100vh;
  padding-top: 130px;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.m-top-80 {
  margin-top: 80px;
}

.m-top-100 {
  margin-top: 100px;
}

.m-top-150 {
  margin-top: 150px;
}


p {
  line-height: 1;
}

ul {
  margin: 10px 0 10px 0px;
}

ul li {
  margin-bottom: 8px;
}

li span {
  cursor: pointer;
}

li span:hover {
  text-decoration: underline;
}

code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}

.alert {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  display: none;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 10px 0;
  font-size: 0.95em;
  z-index: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

}

.alert-success {
  background: #e0f7e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.alert-danger {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #ef9a9a;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  grid-area: header;
  background: linear-gradient(to right, #1c1c1c, #2a2a2a);
  color: #f5f7fa;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

header h1 {
  font-size: 1.8em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-list-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-list-actions .btn,
.btn-add-voice {
  font-size: 0.9em;
  width: max-content;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background-color: #333;
  color: #f5f7fa;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background-color: #555;
}

.painel-autores {
  background-color: #e9ecef;
  padding: 20px;
  overflow-y: auto;
}

.painel-autores ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-weight: 500;
  border-left: 4px solid #333;
  list-style: none;
  transition: background-color 0.3s ease, border-left-color 0.3s ease;
}

.pauta-list {
  background: #f5f5f5;
  padding: 20px;
  overflow-y: auto;
}

.list-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  grid-column: span 2;
  background: #e9ecef;
  color: #333;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9em;
}

.card-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card-partitura {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 200px;
  text-align: center;
}

.card-partitura button {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #333;
  color: #f5f7fa;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 250px;
  text-align: left;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.1em;
}

.card p {
  font-size: 0.95em;
  color: #666;
}

.card .btn-open-partitura {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #333;
  color: #f5f7fa;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card .btn-open-partitura:hover {
  background-color: #555;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
  border-radius: 8px;
}

.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.submit-btn {
  background-color: #333;
  color: #f5f7fa;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #555;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* Conteúdo do popup */
.popup-content {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  width: 350px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Título */
.popup-content h3 {
  margin-bottom: 16px;
  font-size: 18px;
  color: #333;
}

/* Input */
#codigo-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
}

/* Botões */
#confirmar-download,
#fechar-popup,
#btn-cancel-remove,
#btn-confirm-remove {
  padding: 10px 18px;
  margin: 6px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

/* Botão confirmar */
#confirmar-download,
#btn-confirm-remove {
  background: #4CAF50;
  color: white;
}

#confirmar-download:hover {
  background: #45a049;
}

/* Botão cancelar */
#fechar-popup,
#btn-cancel-remove {
  background: #f44336;
  color: white;
}

#fechar-popup:hover {
  background: #d32f2f;
}

.table-codigos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.table-codigos th,
.table-codigos td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.table-codigos th {
  background-color: #f4f4f4;
}

.status.valido {
  color: #4CAF50;
  font-weight: bold;
}

.status.usado {
  color: #f44336;
  font-weight: bold;
}

.action-btn {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}


.action-btn button {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #333;
  color: #f5f7fa;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

@media (max-width: 600px) {
  .list-container {
    grid-template-columns: 1fr;
  }

  .painel-autores {
    height: auto;
    max-height: 200px;
  }

  .card-partitura {
    max-width: 100%;
  }
}

@media (max-width:580px) {

  /* .card-partitura{
    max-width: 100%;
  } */
  .btn-list-actions .btn span,
  .btn-add-voice span {
    display: none;
  }

  /* Estado inicial: oculto */
  #painel-autores {
    display: none;
  }

  /* Estado visível via classe */
  #painel-autores.is-open {
    display: block;
    /* ou flex/grid conforme teu layout */
  }

}