/* =====================
   Input Group Container
   ===================== */
   .input-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    position: relative;
    margin-bottom: 2rem;
    align-items: start; /* Alinear elementos al inicio */
}

@media (max-width: 768px) {
    .input-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ==============
   Prompt Input
   ============== */
.prompt-input {
    width: 100%;
    min-height: 200px;
    padding: 1.5rem;
    background: #1E1E2F;
    border: 2px solid #2D2D42;
    border-radius: 12px;
    color: #E0E0FF;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    
    /* Placeholder Animado */
    &::placeholder {
        color: #6D6D8F;
        transition: opacity 0.3s ease;
    }
    
    &:focus {
        outline: none;
        border-color: #6366F1;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
        
        &::placeholder {
            opacity: 0.5;
        }
    }
}

/* =================
   Action Buttons
   ================= */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 140px; /* Reducido para mejor proporción */
}

@media (max-width: 768px) {
    .action-buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.action-button {
    padding: 0.75rem 1.25rem; /* Más compacto */
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem; /* Tamaño de texto más pequeño */
    
    /* Eliminar icono duplicado */
    &::before {
        content: none !important;
    }
    
    /* Efecto de Brillos */
    &::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
            45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent
        );
        transform: rotate(45deg);
        transition: all 0.5s ease;
    }
    
    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
        
        &::after {
            left: 150%;
        }
    }
    
    &:active {
        transform: translateY(1px);
    }
    
    /* Iconos */
    & i {
        font-size: 1.1em;
        transition: transform 0.3s ease;
    }
    
    &:hover i {
        transform: scale(1.1);
    }
}

/* ======================
   Botones Específicos
   ====================== */
button[name="action"][value="translate"] {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
}

button[name="action"][value="improve"] {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
}

button[onclick="clearInputs()"] {
    background: linear-gradient(135deg, #EF4444, #F43F5E);
}

/* ======================
   Media Queries Mejorados
   ====================== */
@media (max-width: 480px) {
    .action-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        
        & i {
            font-size: 1em;
        }
    }
    
    .prompt-input {
        padding: 1rem;
        min-height: 150px;
    }
}