/* Contenedor principal */
.baw-container {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: 'Pixel', sans-serif;
    font-size: 10px;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    cursor: move; /* Habilitar cursor de mover */
}

/* Animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* Botón para abrir comandos (toggle) */
.baw-toggle {
    background: url('https://i.ibb.co/mFVPFHH/bawtool.png') no-repeat center center;
    background-size: contain;
    width: 30px;
    height: 30px;
    border: none;
    cursor: pointer;
    font-size: 0;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 1001;
}

/* Hover y active */
.baw-toggle:hover {
    background: url('https://i.ibb.co/mFVPFHH/bawtool.png') no-repeat center center;
    background-size: contain;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.baw-toggle:active {
    transform: scale(0.95) translateY(-50%);
}

/* Botón de cierre (X) */
.baw-close {
    background: url('https://imgur.com/K4vWs27.png') no-repeat center center; /* Fondo de la X */
    background-size: contain;
    width: 17px;
    height: 27px;
    border: none;
    cursor: pointer;
    font-size: 0;
    position: absolute;
    top: 24px;
    right: 10px;
    display: none; /* Este botón estará oculto por defecto */
}

/* Lista de comandos */
.baw-command-list {
    display: none; /* Este div está oculto por defecto */
    background-color: #2B2B2B;
    padding: 12px;
    border-radius: 4px;
    border: 2px solid #333;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
    color: #FFF;
    width: 280px;
    animation: slideDown 0.4s ease-out;
}

/* Animación de deslizamiento */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Header */
.baw-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: center;
}

.baw-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    border: 2px solid #555;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.baw-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    color: #F4A300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Filas de comandos */
.baw-command-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    gap: 4px;
}

/* Botones */
.baw-button {
    background: linear-gradient(145deg, #5A8F3D, #4A7E32);
    color: #FFF;
    border: 2px solid #4A7E32;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.baw-button:hover {
    background: linear-gradient(145deg, #4A7E32, #3B6F2A);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.baw-button:active {
    background: linear-gradient(145deg, #3B6F2A, #2C5A23);
    transform: scale(0.95);
}

/* Input */
.baw-input {
    flex-grow: 1;
    padding: 4px;
    font-size: 10px;
    border: 2px solid #666;
    border-radius: 4px;
    background: linear-gradient(145deg, #444, #333);
    color: #FFF;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.baw-input::placeholder {
    color: #888;
}

.baw-input:focus {
    border-color: #888;
    box-shadow: 0 0 6px rgba(90, 90, 90, 0.5);
}

/* Grid de comandos */
.baw-command-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
