/* Estilos para el sidebar de instrucciones */
.main-container {
    display: flex;
    min-height: 100vh;
}

.content-area {
    flex: 1;
    /* padding: 20px; */
    transition: all 0.3s ease;
}

.instructions-sidebar {
    width: 320px;
    background-color: #f8f9fa;
    border-left: 1px solid #dee2e6;
    padding: 0;
    transition: all 0.3s ease;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
}

/* Para colocar el sidebar a la izquierda, usa estos estilos */
.instructions-sidebar.left {
    border-right: 1px solid #dee2e6;
    border-left: none;
    order: -1;
}

.sidebar-header {
    background-color: #28a745;
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: none;
}

.sidebar-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

/* Para colocar el botón a la izquierda cuando el sidebar está a la izquierda */
.sidebar-toggle-btn.left {
    right: auto;
    left: 20px;
}

.sidebar-content {
    padding: 20px;
}

.instruction-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.instruction-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.section-title i {
    margin-right: 10px;
    color: #28a745;
    width: 20px;
    text-align: center;
}

.section-title .toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.section-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.section-content {
    padding-left: 15px;
    margin-bottom: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 1000px;
}

.section-content.collapsed {
    max-height: 0;
}

.instruction-item {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #495057;
    position: relative;
    /* padding-left: 10px; */
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-item::before {
    /* content: "•"; */
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.instruction-note {
    background-color: #e9f7ef;
    border-left: 4px solid #28a745;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #155724;
}

.instruction-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

.instruction-image {
    width: 100%;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #dee2e6;
}

@media (max-width: 991.98px) {
    .instructions-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100%;
        z-index: 1050;
        transform: translateX(100%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .instructions-sidebar.show {
        transform: translateX(0);
    }
    
    .instructions-sidebar.left {
        right: auto;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .instructions-sidebar.left.show {
        transform: translateX(0);
    }
    
    .sidebar-close-btn {
        display: block;
    }
    
    .sidebar-toggle-btn {
        display: flex;
    }
    
    .content-area {
        width: 100%;
    }
}