

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*height: 100vh;*/
    min-height: 100vh;
    overflow: auto;
}


/* Estilo del contenedor de entrada */
.login-container {
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    position: fixed;
    top: 0px;
    width: 100%;
    left: 0;
    z-index: 10;
    padding: 2px;
    background-color: gray;

    align-items: center;
}

.login-container-right-buttons {
    margin-left: auto; /* Empuja este div hacia la derecha */
    display: flex;
    gap: 10px; /* Espacio entre los botones de la derecha */
    margin-right: 4px;
}




/* Estilo del contenedor de entrada */
.input-container {
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    position: fixed;
    top: 30px;
}

.input-container textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 62vw;
    max-width: 700px;
}

.input-container button {
    padding: 7px 11px;
    height: 34px;
    font-size: 1em;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-container button:hover {
    background-color: #0056b3;
}

.buttonsContainer {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    top: 20px;
}




.songTitleContainer {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    top: 115px;
    position: absolute;
    z-index: 2;
}

.songTitleContainer input {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    max-width: 168px;
}



.partContainer{
    top: 128px;
    position: fixed;
    overflow: auto;
    padding: 15px;
    /*height: 100vh;*/
}

.titleContainer {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title {
    text-align: center; /* Centrar el texto horizontalmente */
    font-size: 1.5em; /* Ajustar el tamaño del texto */
    font-weight: bold; /* Hacer el texto más destacado */
    margin: 20px 0; /* Separar el título de otros elementos */
    color: #333; /* Color del texto */
}

.author {
    text-align: center; /* Centrar el texto horizontalmente */
    font-size: 0.9em; /* Ajustar el tamaño del texto */
    font-weight: bold; /* Hacer el texto más destacado */
    /*margin: 20px 0; /* Separar el título de otros elementos */
    color: #333; /* Color del texto */
    padding-top: 8px;
}

/* Estilo del contenedor de salida */
#output {
    
    width: 80%; /* Ajusta según tu diseño */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    
}




/* Estilo de cada acorde */
.bar-container {
    position: relative;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    
    display: flex;
    align-items: center;
    justify-content: center; 
    height: auto; 
    font-size: 1em;
    font-weight: bold;
    color: #333;
    transition: transform 0.2s;
    text-align: center;

    width: 25vw; /* 50% del ancho de la pantalla */
    max-width: 200px;
}

.bar-container:hover {
    transform: scale(1.1);
}


.destacado {
    animation: resaltar 0.8s ease-in-out;
  }
  
  @keyframes resaltar {
    0% {
      background-color: #e6f0ff; /* azul muy claro */
      transform: scale(1.03);
      box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
    }
    50% {
      background-color: #d0e5ff; /* azul un poquito más intenso */
      transform: scale(1.06);
      box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    }
    100% {
      background-color: inherit;
      transform: scale(1);
      box-shadow: none;
    }
  }


/* Cambiar a 2 columnas en pantallas pequeñas */
@media (max-width: 915px) {
    #output {
        grid-template-columns: repeat(2, 1fr);
    }

    .bar-container {
        width: 40vw; /* 25% del ancho de la pantalla */
    }
}





/* Chords new option */
.chord {
    text-align: left;
    padding: 2px 4px;
    border: 1px solid #aaa;
    /*border: 1px solid #8a8787;*/
    font-size: medium;
}






/* Pie de página */
footer {
    margin-top: auto;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
}


/* General styles */


/* Bar label */
.bar-label {
    font-weight: bold;
    position: absolute;
    top: -11px;
    left: 6%;
    background-color: #89ccf3;
    padding: 0 5px;
    border-radius: 4px;
    z-index: 1;
}

.bar-tempo {
    font-weight: normal;
    font-size: 0.82em;
    position: absolute;
    top: -16px;
    left: 66%;
    background-color: #e9e9e9a6;
    padding: 0 5px;
    border-radius: 4px;
    z-index: 1;
}



.bar-number {
    font-size: x-small;
    position: absolute;
    top: 33px;
    left: 0%;
    color: #717876;
    background-color: #f1f1f1;
    border-radius: 50px;
    z-index: 1;
}

/* Time signature */
.time-signature {
    position: absolute;
    left: -4px;
    top: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 0.8em;
    background-color: #ff8484; /*#abe7cc;*/
    padding: 2px;
    border-radius: 4px;
    z-index: 1;
}

.time-signature .line {
    width: 100%;
    height: 1px;
    background-color: black;
    margin: 2px 0;
}



/* End markers */
.fin-simple {
    border-right: 4px solid black;
}

.fin-doble {
    border-right: 7px double black;
}

.fin-doble::after {
    content: "• •"; /* Representa los dos puntos */
    font-size: 16px; /* Ajusta el tamaño de los puntos */
    color: black; /* Color de los puntos */
    position: absolute;
    right: -3px; /* Ajusta la posición respecto al borde */
    top: 50%;
    transform: translateY(-50%) rotate(90deg); /* Centra verticalmente y rota */
}

/* Repeat indicator */
.repeat-indicator {
    position: absolute;
    top: -1px;
    left: -5px;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.repeat-indicator .horizontal-line {
    width: 92%;
    height: 2px;
    background-color: black;
    margin-bottom: 5px;
}

.repeat-indicator span {
    font-weight: bold;
    font-size: 0.8em;
    background-color: #dacfcf;
    padding: 0 4px;
    border-radius: 4px;
}





.highlighted {
    /*border: 1px solid red !important;*/
    background-color: rgba(255, 0, 0, 0.4) !important;
    /*transition: background-color 0.3s ease, border 0.3s ease;*/
}

.highlightedNext {
    /*border: 1px solid red !important;*/
    background-color: rgba(157, 232, 123, 0.74) !important;
    transition: background-color 0.6s ease, border 0.6s ease;
}














/* Contenedor principal de la lista */
#songList {
    height: 80vh;
    margin-top: 65px;
    width: 91%;
    max-width: 880px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: auto;
    background-color: #fff;
    font-family: Arial, sans-serif;
    font-size: large;
}

/* Estilo general para cada fila */
.song-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    align-items: center;
    position: relative;
    padding-right: 30px;
}

/* Última fila sin borde inferior */
.song-item:last-child {
    border-bottom: none;
}

/* Estilo para los encabezados */
.song-header {
    font-weight: bold;
    background-color: #f7f7f7;
    color: #333;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
}

.song-header span {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
}

.song-header span:hover {
    background-color: #e0e0e0;
    text-decoration: underline;
}

/* Estilo para las columnas */
.song-title {
    flex: 2; /* El título ocupa más espacio */
    text-align: left;
}

.song-author {
    flex: 1; /* El autor ocupa menos espacio */
    text-align: left;
    color: #4b7cc3; /* Color más tenue */
}

/* Estilo para las filas al pasar el ratón */
.song-item:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Efecto de selección activa en filas */
.song-item:active {
    background-color: #e0e0e0;
}

/* Espaciado y alineación para texto */
.song-item span {
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animación de transición para cambios visuales */
.song-item,
.song-header span {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    cursor: pointer;
    width: 24px; /* Aumenta el ancho del botón */
    height: 24px; /* Aumenta la altura del botón */
    text-align: center; /* Centra el texto dentro del botón */
    line-height: 24px; /* Centra verticalmente el texto */
    border-radius: 50%; /* Hace que el botón sea redondeado */
    transition: background-color 0.3s ease; /* Añade una transición suave para el cambio de color */
}

.song-item:hover .menu-button {
    display: inline;
}

.menu-button:hover {
    background-color: #e0e0e0; /* Cambia el color de fondo al posar el mouse */
}

.context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    #songList {
        width: 100%;
        border: none;
        box-shadow: none;
        font-size: x-large;

    }

    .song-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 12px;
    }

    .song-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 12px;
    }

    .song-header span {
        text-align: left;
        padding: 8px 12px;
    }

    .song-title, .song-author {
        text-align: left;
        width: 100%;
    }

    .menu-button {
        right: 5px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }
}















/* Menú flotante */
.menu-flotante {
    position: absolute;
    display: none;
    background-color: rgb(255, 255, 255);
    border: 2px solid #a1a1a1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
    gap:4px;
}
.menu-flotante button {
    display: block;
    margin: 5px 0;
    padding: 5px 10px;
}
.menu-flotante input[type="text"] {
    width: 100%;
    margin-top: 10px;
    padding: 5px;
}

.group-of-two-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ededed;
    padding: 4px;
    border-radius: 9px;
}

.horizontal-flex-container{
    display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: #ededed;
    padding: 4px;
    border-radius: 9px;
}


#input-menu{
    width: 140px;
}
#input-menu-label{
    width: 140px;
}
#input-menu-pulse{
    width: 50px;
}
#input-menu-tempo{
    width: 50px;
}
#input-menu-time-signature{
    width: 50px;
}








/* Contenedor del toggle */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el label y el interruptor */
    margin-top: 10px;
}

/* Label del toggle */
.toggle-label {
    font-size: 14px;
    color: #333;
}

/* Toggle */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle input {
    display: none; /* Oculta el checkbox real */
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px; /* Hace que el toggle sea redondeado */
    cursor: pointer;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Sombra en el círculo */
}

/* Estado activado */
input:checked + .slider {
    background-color: #4CAF50; /* Color del toggle activado */
}

input:checked + .slider:before {
    transform: translateX(22px); /* Mueve el círculo a la derecha */
}
