
.btnNav{
   background-color: #032969; color: white; border-radius: 5px; padding: 10px; transition: 0.3s;
}
.btnNav:hover{
    background-color: #335ea3; color: white;
}

.footer{
    height: 25px;
    display: flex;
    /*border-top: 1px solid rgb(250, 250, 250); */
    background-color: #f5f5f5;
    color: rgb(31, 31, 31);
    justify-content: right;
    align-items: right;
    font-family: 'Roboto', sans-serif;
    font-size: 10px;
    position:fixed; left:0; bottom:0; width:100%;
    padding:5px 0; 

}

.sidebar{
    background-image: url('../img/fondo.png');
    background-size: cover;
    position: fixed;
    top: 55px;
    left: 0;
    bottom: 0;
    width: 16.66667%; /* Equivalente a col-lg-2 */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    color: black;
    z-index: 100;
}

/* Ajustes responsivos para el sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        width: 25%; /* col-md-3 */
    }
}

@media (max-width: 767.98px) {
    .sidebar {
        display: none !important; /* Ocultar en móvil, usar offcanvas */
    }
}

.sidebar .nav-link{
    color: black;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar .nav-link:hover{
    background-color: #335ea3;
    color: white;
    border-radius: 5px;
}
.sidebar .nav-link.active{
    background-color: #032969;
    color: white;
    border-radius: 5px;
}

/* Estilos mobile-first para la página de registro de miembros */
.registro-container{
    background-image: url('../img/fondo.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 24px 16px; /* padding reducido para móvil */
}

.registro-card{
    width: 100%;
    max-width: 520px; /* control del ancho en móvil y tablet */
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
}

/* Márgenes y padding del formulario para mobile-first */
.registro-card{
    margin: 12px auto; /* espacio vertical en móvil y centrado */
}
.registro-card .card-body{
    padding: 18px; /* espacio interior cómodo en móvil */
}

/* Más espacio en pantallas mayores */
@media (min-width: 768px) {
    .registro-card{ margin: 0; }
    .registro-card .card-body{ padding: 28px; }
    .d-flex.justify-content-center.align-items-center.h-100{ align-items: flex-start; }
}

.registro-intro p, .registro-intro h1{
    color: #000;
}

@media (min-width: 768px) {
    .registro-container{ padding: 70px; }
    .registro-card{ max-width: 32rem; }
}

@media (min-width: 992px) {
    /* ajustes adicionales en pantallas grandes si se requieren */
}

/* ==================== WORSHIP LEADER STYLES ==================== */

/* Tabs personalizados */
#worshipTabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

#worshipTabs .nav-link:hover {
    color: #032969;
    border-bottom-color: #335ea3;
}

#worshipTabs .nav-link.active {
    color: #032969;
    border-bottom-color: #032969;
    background-color: transparent;
}

/* Lista de canciones */
.song-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.song-item:hover {
    background-color: #f8f9fa;
    border-left-color: #335ea3;
}

.song-item.active {
    background-color: #e7f1ff;
    border-left-color: #032969;
    font-weight: 500;
    color: #000;
}

/* Chord sheet styling */
.chord-sheet {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.chord-sheet-playlist {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    padding: 1rem;
}

/* Playlist cards */
.playlist-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.playlist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-color: #335ea3;
}

.playlist-card.border-primary {
    border-color: #032969 !important;
    box-shadow: 0 4px 12px rgba(3, 41, 105, 0.3);
}

/* Botones de transposición */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Pills personalizadas para estructura */
#songStructureTabs .nav-link {
    border-radius: 20px;
    padding: 0.5rem 1.25rem;
    margin-right: 0.5rem;
    background-color: #f8f9fa;
    color: #0f0f0f;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

#songStructureTabs .nav-link:hover {
    background-color: #e9ecef;
    color: #032969;
    border-color: #335ea3;
}

#songStructureTabs .nav-link.active {
    background-color: #032969;
    color: white;
    border-color: #032969;
}

/* Estilos para items de canciones en modal */
.available-song-item, .playlist-song-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.available-song-item:hover, .playlist-song-item:hover {
    background-color: #f8f9fa;
}

.available-song-item.active, .playlist-song-item.active {
    background-color: #e7f1ff;
    color: #000;
    border-left: 3px solid #032969;
}

/* Alertas flotantes */
.alert.position-fixed {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para impresión */
@media print {
    .sidebar, .nav-tabs, .btn, footer, .modal {
        display: none !important;
    }
    
    .chord-sheet-playlist {
        page-break-after: always;
        background-color: white !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
}

/* Badges personalizados */
.badge.bg-secondary {
    background-color: #6c757d !important;
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

/* Scrollbar personalizado */
.list-group-flush::-webkit-scrollbar,
#chordSheetsContent::-webkit-scrollbar {
    width: 8px;
}

.list-group-flush::-webkit-scrollbar-track,
#chordSheetsContent::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.list-group-flush::-webkit-scrollbar-thumb,
#chordSheetsContent::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.list-group-flush::-webkit-scrollbar-thumb:hover,
#chordSheetsContent::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsivo para tablets */
@media (max-width: 991.98px) {
    #worshipTabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .chord-sheet {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

/* Responsivo para móviles */
@media (max-width: 767.98px) {
    #worshipTabs .nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .chord-sheet {
        font-size: 0.7rem;
        padding: 0.6rem;
    }
    
    .playlist-card {
        margin-bottom: 0.8rem;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
    }
}

/* Estados vacíos */
#emptySongState, #emptyPlaylistVista, #emptyChordSheets {
    color: #6c757d;
}

#emptySongState i, #emptyPlaylistVista i, #emptyChordSheets i {
    color: #dee2e6;
}

/* Hover effects para botones */
.btn-primary {
    background-color: #032969;
    border-color: #032969;
}

.btn-primary:hover {
    background-color: #335ea3;
    border-color: #335ea3;
}

.btn-outline-primary {
    color: #032969;
    border-color: #032969;
}

.btn-outline-primary:hover {
    background-color: #032969;
    color: white;
}

/* Ajustes para modal de playlist */
#modalPlaylist .modal-dialog {
    max-width: 90%;
}

@media (min-width: 1200px) {
    #modalPlaylist .modal-dialog {
        max-width: 1140px;
    }
}

/* Animaciones suaves */
.card, .list-group-item, .btn {
    transition: all 0.2s ease;
}

/* Mejora de contraste para accesibilidad */
.text-muted {
    color: #6c757d !important;
}

/* Sombras sutiles */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);

}

/* Estilos para botones de transposición */
#btnTransposeDown,
#btnTransposeReset,
#btnTransposeUp {
    background-color: #f0f0f0;
    border: 1px solid #999;
    color: #333;
    padding: 5px 8px;
    font-size: 12px;
}

#btnTransposeDown:hover,
#btnTransposeReset:hover,
#btnTransposeUp:hover {
    background-color: #e0e0e0;
    border-color: #666;
}

#btnFavorito {
    background-color: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    min-width: auto;
    height: auto;
    line-height: 1.4;
}

#btnFavorito:hover:not(:disabled) {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: white !important;
}

#btnFavorito.active {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
    padding: 5px 10px !important;
    font-size: 12px !important;
}

#btnFavorito:disabled {
    opacity: 0.5;
}

/* Estilos para modales más grandes */
.modal-dialog {
    max-width: 90vw;
}

.modal-fullscreen-lg-down {
    max-width: 90vw;
}

#modalCancion .modal-dialog {
    max-width: 90vw;
}

#modalPlaylist .modal-dialog {
    max-width: 95vw;
}

#modalTonalidad .modal-dialog {
    max-width: 70vw;
}

.modal-dialog-scrollable .modal-body {
    max-height: 85vh;
}

/* ==================== WORSHIP LEADER - SECCIONES ====================*/

/* Estilos para secciones de canciones */
.seccion-item {
    transition: all 0.2s ease;
}

.seccion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.seccion-nombre, .seccion-tipo {
    transition: border-color 0.2s ease;
}

.seccion-nombre:focus, .seccion-tipo:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Drag and Drop */
.seccion-disponible, .estructura-item {
    cursor: move;
    transition: all 0.2s ease;
}

.seccion-disponible:hover, .estructura-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

#estructuraReproduccion.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
}

.estructura-item {
    background-color: white;
    margin-bottom: 0 !important;
}

.estructura-item .orden-numero {
    font-weight: bold;
    color: #0d6efd;
    min-width: 25px;
    display: inline-block;
}

/* Botones de la estructura */
.btn-subir-estructura, .btn-bajar-estructura, .btn-quitar-estructura {
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
}

/* Estilo para lista de secciones disponibles */
.list-group-item-action {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .seccion-nombre {
        max-width: 130px !important;
        font-size: 0.85rem;
    }
    
    .seccion-tipo {
        max-width: 100px !important;
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    h5, .h5 {
        font-size: 1rem;
    }

    h6, .h6 {
        font-size: 0.9rem;
    }
}