/* Estilos para el acordeón */
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.accordion-header {
    background-color: #f7f7f7;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #333;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.accordion-header h3 i {
    margin-right: 10px;
    color: #007bff; /* Color del icono */
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 20px;
    border-top: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0; /* Inicialmente oculto */
}

.accordion-content.show {
    max-height: 5000px; /* Aumentado para contenido largo */
    padding: 20px;
}

/* Ajustes para el contenido dentro del acordeón */
.accordion-content .form-group {
    margin-bottom: 15px;
}

.accordion-content .btn-secondary,
.accordion-content .btn-success,
.accordion-content .btn-primary,
.accordion-content .btn-danger {
    margin-top: 10px;
    margin-right: 10px; /* Espacio entre botones */
}

.accordion-content hr {
    margin: 20px 0;
    border-color: #eee;
}

.accordion-content p.muted {
    font-size: 0.9em;
    color: #666;
}

.accordion-content #qrbox img {
    display: block;
    margin: 10px auto;
}

.accordion-content #status strong {
    color: #007bff;
}

/* Asegurar que los modales no se vean afectados */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
